mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Merge pull request #30966 from storybookjs/no-test-no-vta
CLI: Only install Visual Test Addon if test feature is selected
This commit is contained in:
commit
fdb13bd0fa
@ -277,7 +277,9 @@ export async function baseGenerator(
|
||||
: extraAddonPackages;
|
||||
|
||||
// TODO: change the semver range to '^4' when VTA 4 and SB 9 is released
|
||||
extraAddonsToInstall.push('@chromatic-com/storybook@^4.0.0-0');
|
||||
if (features.includes('test')) {
|
||||
extraAddonsToInstall.push('@chromatic-com/storybook@^4.0.0-0');
|
||||
}
|
||||
|
||||
// Add @storybook/addon-docs when docs feature is selected
|
||||
if (features.includes('docs')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user