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