mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 05:21:06 +08:00
22 lines
557 B
TypeScript
22 lines
557 B
TypeScript
import { resolve } from 'path';
|
|
import { defineConfig, defineWorkspace } from 'vitest/config';
|
|
|
|
export default defineWorkspace([
|
|
'addons/*/vitest.config.ts',
|
|
'frameworks/*/vitest.config.ts',
|
|
'lib/*/vitest.config.ts',
|
|
'deprecated/*/vitest.config.ts',
|
|
'builders/*/vitest.config.ts',
|
|
'ui/*/vitest.config.ts',
|
|
'presets/*/vitest.config.ts',
|
|
'renderers/*/vitest.config.ts',
|
|
]);
|
|
|
|
export const vitestCommonConfig = defineConfig({
|
|
test: {
|
|
clearMocks: true,
|
|
setupFiles: [resolve(__dirname, './vitest-setup.ts')],
|
|
globals: true,
|
|
},
|
|
});
|