Jelajahi Sumber

Update vitest config

Shun Miyazawa 2 tahun lalu
induk
melakukan
00863aefd2
2 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 4 0
      apps/app/vitest.config.components.ts
  2. 1 1
      apps/app/vitest.config.ts

+ 4 - 0
apps/app/vitest.config.components.ts

@@ -1,6 +1,10 @@
+import tsconfigPaths from 'vite-tsconfig-paths';
 import { defineConfig } from 'vitest/config';
 import { defineConfig } from 'vitest/config';
 
 
 export default defineConfig({
 export default defineConfig({
+  plugins: [
+    tsconfigPaths(),
+  ],
   test: {
   test: {
     globals: true,
     globals: true,
     environment: 'happy-dom',
     environment: 'happy-dom',

+ 1 - 1
apps/app/vitest.config.ts

@@ -8,7 +8,7 @@ export default defineConfig({
   test: {
   test: {
     environment: 'node',
     environment: 'node',
     exclude: [
     exclude: [
-      '**/test/**',
+      '**/test/**', '**/*.test.tsx', '**/*.test.jsx',
     ],
     ],
     clearMocks: true,
     clearMocks: true,
     globals: true,
     globals: true,