mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:11:07 +08:00
Don't bail on prompts in tests
This commit is contained in:
parent
96f920afda
commit
090fb358ac
@ -10,7 +10,7 @@ type TelemetryOptions = {
|
||||
};
|
||||
|
||||
const promptCrashReports = async () => {
|
||||
if (process.env.CI) return undefined;
|
||||
if (process.env.CI && process.env.NODE_ENV !== 'test') return undefined;
|
||||
|
||||
const { enableCrashReports } = await prompts({
|
||||
type: 'confirm',
|
||||
|
Loading…
x
Reference in New Issue
Block a user