Commit | Line | Data |
---|---|---|
01ff4231 | 1 | import { fileURLToPath } from 'node:url'; |
01ff4231 | 2 | import { configDefaults, defineConfig } from 'vitest/config'; |
cbac2373 | 3 | import { mergeConfig } from 'vite'; |
01ff4231 JB |
4 | import viteConfig from './vite.config'; |
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 JB |
13 | coverage: { |
14 | provider: 'c8', | |
15 | reporter: ['lcov'], | |
16 | }, | |
01ff4231 | 17 | }, |
f3095697 | 18 | }), |
01ff4231 | 19 | ); |