🐛 Fix issues with tests
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user