/// import '@testing-library/jest-dom/vitest'; import { setProjectAnnotations } from '@storybook/react'; import { cleanup, render } from '@testing-library/react'; import { afterEach, beforeAll } from 'vitest'; // https://vanilla-extract.style/documentation/test-environments/#disabling-runtime-styles import '@vanilla-extract/css/disableRuntimeStyles'; import * as previewAnnotations from './.storybook/preview'; const annotations = setProjectAnnotations([ previewAnnotations, // You MUST provide this option to use portable stories with vitest { testingLibraryRender: render }, ]); // Run Storybook's beforeAll hook beforeAll(annotations.beforeAll!); afterEach(() => cleanup());