vitest.setup.ts 454 B

1234567
  1. import * as a11yAddonAnnotations from '@storybook/addon-a11y/preview';
  2. import { setProjectAnnotations } from '@storybook/react-vite';
  3. import * as projectAnnotations from './preview';
  4. // This is an important step to apply the right configuration when testing your stories.
  5. // More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
  6. setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);