Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion code/addons/vitest/src/vitest-plugin/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const startStorybookIfNotRunning = async () => {

try {
// We don't await the process because we don't want Vitest to hang while Storybook is starting
storybookProcess = spawn(storybookScript, [], {
// Use shell so commands like `yarn storybook --no-open` or `npm run storybook -- --no-open`
// are interpreted correctly across platforms.
storybookProcess = spawn(storybookScript, {
shell: true,
stdio: process.env.DEBUG === 'storybook' ? 'pipe' : 'ignore',
cwd: process.cwd(),
});
Expand Down