🐛 Fix issues with tests

This commit is contained in:
Meier Lukas
2023-06-10 20:30:52 +02:00
parent 69907232a5
commit afaaa1b346
3 changed files with 42 additions and 5 deletions

View File

@@ -1,10 +1,11 @@
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import { configDefaults, defineConfig } from 'vitest/config';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), tsconfigPaths()],
test: {
environment: 'happy-dom',
coverage: {
@@ -14,9 +15,6 @@ export default defineConfig({
exclude: ['.next/', '.yarn/', 'data/'],
},
setupFiles: ['./tests/setupVitest.ts'],
exclude: [
...configDefaults.exclude,
'.next',
],
exclude: [...configDefaults.exclude, '.next'],
},
});