This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / webapp / vitest.config.ts
1.3 kB 41 lines
1import path from 'node:path'; 2import { fileURLToPath } from 'node:url'; 3 4import { defineConfig } from 'vitest/config'; 5 6import { storybookTest } from '@storybook/addon-vitest/vitest-plugin'; 7 8const dirname = 9 typeof __dirname !== 'undefined' 10 ? __dirname 11 : path.dirname(fileURLToPath(import.meta.url)); 12 13// More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon 14export default defineConfig({ 15 test: { 16 projects: [ 17 { 18 extends: true, 19 plugins: [ 20 // The plugin will run tests for the stories defined in your Storybook config 21 // See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest 22 storybookTest({ configDir: path.join(dirname, '.storybook') }), 23 ], 24 test: { 25 name: 'semble storybook', 26 browser: { 27 enabled: true, 28 headless: true, 29 provider: 'playwright', 30 instances: [{ browser: 'chromium', name: 'semble storybook' }], 31 }, 32 setupFiles: ['.storybook/vitest.setup.ts'], 33 typecheck: { 34 enabled: true, 35 tsconfig: 'tsconfig.test.json', 36 }, 37 }, 38 }, 39 ], 40 }, 41});