vitest.setup.ts 389 B

123456789101112
  1. import * as a11yAddonAnnotations from '@storybook/addon-a11y/preview';
  2. import { setProjectAnnotations } from '@storybook/sveltekit';
  3. import * as previewAnnotations from './preview';
  4. import { beforeAll } from 'vitest';
  5. const project = setProjectAnnotations([a11yAddonAnnotations, previewAnnotations]);
  6. beforeAll(async () => {
  7. if (project.beforeAll) {
  8. await project.beforeAll();
  9. }
  10. });