mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-29 06:18:12 +03:00
22 lines
609 B
TypeScript
22 lines
609 B
TypeScript
import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin';
|
|
import { storybookSveltekitPlugin } from '@storybook/sveltekit/vite-plugin';
|
|
import { defineWorkspace } from 'vitest/config';
|
|
|
|
export default defineWorkspace([
|
|
'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']
|
|
}
|
|
}
|
|
]);
|