ray-template/vitest.config.ts
2024-12-07 01:04:16 +08:00

22 lines
493 B
TypeScript

import { defineConfig, mergeConfig, configDefaults } from 'vitest/config'
import viteConfig from './vite.config'
export default defineConfig((configEnv) =>
mergeConfig(
viteConfig(configEnv),
defineConfig({
test: {
include: ['./__test__/**/*.(spec).(ts|tsx)'],
exclude: [
...configDefaults.exclude,
'**/src/**',
'./__test__/utils/**/*',
],
environment: 'happy-dom',
globals: true,
},
}),
),
)