2024-09-26 01:24:21 +03:00
|
|
|
import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin';
|
|
|
|
import { storybookSveltekitPlugin } from '@storybook/sveltekit/vite-plugin';
|
2024-09-26 01:36:46 +03:00
|
|
|
import { defineWorkspace } from 'vitest/config';
|
2024-08-30 15:03:15 +03:00
|
|
|
|
|
|
|
export default defineWorkspace([
|
2024-09-26 01:24:21 +03:00
|
|
|
'vite.config.ts',
|
|
|
|
{
|
|
|
|
extends: 'vite.config.ts',
|
|
|
|
plugins: [storybookTest({ storybookScript: 'pnpm storybook' }), storybookSveltekitPlugin()],
|
|
|
|
test: {
|
|
|
|
browser: {
|
|
|
|
enabled: true,
|
|
|
|
headless: true,
|
|
|
|
name: 'chromium',
|
|
|
|
provider: 'playwright'
|
|
|
|
},
|
|
|
|
include: ['**/*.stories.?(m)[jt]s?(x)'],
|
|
|
|
setupFiles: ['./.storybook/vitest.setup.ts']
|
|
|
|
}
|
|
|
|
}
|
2024-08-30 15:03:15 +03:00
|
|
|
]);
|