mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 07:03:00 +08:00
30 lines
683 B
TypeScript
30 lines
683 B
TypeScript
import { defineConfig, mergeConfig, configDefaults } from 'vitest/config'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
|
|
import viteConfig from './vite.config'
|
|
|
|
export default defineConfig((configEnv) =>
|
|
mergeConfig(
|
|
viteConfig(configEnv),
|
|
defineConfig({
|
|
plugins: [tsconfigPaths()],
|
|
test: {
|
|
include: ['**/__test__/**/*'],
|
|
exclude: [
|
|
...configDefaults.exclude,
|
|
'**/src/**',
|
|
'**/__test__/utils/**/*',
|
|
],
|
|
environment: 'happy-dom',
|
|
globals: true,
|
|
poolOptions: {
|
|
threads: {
|
|
maxThreads: 1,
|
|
minThreads: 0,
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
),
|
|
)
|