gege-jdr/vitest.config.local.ts

15 lines
385 B
TypeScript
Raw Permalink Normal View History

2024-08-08 14:08:40 +00:00
import { fileURLToPath } from 'node:url';
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config';
import viteConfig from './vite.config';
export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url)),
},
})
);