File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 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 ] ) ;
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments