Skip to content

Commit 8190d1c

Browse files
committed
Isolate false
1 parent 1c72482 commit 8190d1c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.storybook/vitest.setup.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
2+
import { setProjectAnnotations } from '@storybook/nextjs-vite';
3+
import * as projectAnnotations from './preview';
4+
5+
// This is an important step to apply the right configuration when testing your stories.
6+
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
7+
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineConfig({
2727
provider: 'playwright',
2828
instances: [{ browser: 'chromium' }],
2929
},
30+
isolate: false,
3031
setupFiles: ['.storybook/vitest.setup.ts'],
3132
},
3233
},

0 commit comments

Comments
 (0)