vitest.config.js 378 B

1234567891011121314
  1. import { fileURLToPath } from 'node:url'
  2. import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
  3. import viteConfig from './vite.config'
  4. export default mergeConfig(
  5. viteConfig,
  6. defineConfig({
  7. test: {
  8. environment: 'jsdom',
  9. exclude: [...configDefaults.exclude, 'e2e/*'],
  10. root: fileURLToPath(new URL('./', import.meta.url))
  11. }
  12. })
  13. )