@@ -1,6 +1,10 @@
+import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
+ plugins: [
+ tsconfigPaths(),
+ ],
test: {
globals: true,
environment: 'happy-dom',
@@ -8,7 +8,7 @@ export default defineConfig({
environment: 'node',
exclude: [
- '**/test/**',
+ '**/test/**', '**/*.test.tsx', '**/*.test.jsx',
],
clearMocks: true,