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