Commit | Line | Data |
---|---|---|
66a7748d JB |
1 | import { fileURLToPath } from 'node:url' |
2 | import { configDefaults, defineConfig } from 'vitest/config' | |
3 | import { mergeConfig } from 'vite' | |
4 | import viteConfig from './vite.config' | |
01ff4231 JB |
5 | |
6 | export default mergeConfig( | |
7 | viteConfig, | |
8 | defineConfig({ | |
9 | test: { | |
10 | environment: 'jsdom', | |
11 | exclude: [...configDefaults.exclude, 'e2e/*'], | |
12 | root: fileURLToPath(new URL('./', import.meta.url)), | |
2de63014 | 13 | coverage: { |
60354605 | 14 | provider: 'v8', |
a974c8e4 JB |
15 | reporter: ['text', 'lcov'] |
16 | } | |
17 | } | |
66a7748d JB |
18 | }) |
19 | ) |