| 1 | import { fileURLToPath } from 'node:url' |
| 2 | import { mergeConfig } from 'vite' |
| 3 | import { configDefaults, defineConfig } from 'vitest/config' |
| 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)), |
| 13 | transformMode: { |
| 14 | web: [/\.[jt]sx$/] |
| 15 | } |
| 16 | } |
| 17 | }) |
| 18 | ) |