yuwen
2天前 d9ec9bbb8420f23f8752c86f71ed2ec598b52173
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { fileURLToPath } from 'node:url'
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
import viteConfig from './vite.config'
 
export default mergeConfig(
  viteConfig,
  defineConfig({
    test: {
      environment: 'jsdom',
      exclude: [...configDefaults.exclude, 'e2e/**'],
      root: fileURLToPath(new URL('./', import.meta.url)),
      setupFiles: ['./setupTests.ts'],
    },
  }),
)