Browse Source

chore: coverage setup

alvarosabu 1 năm trước cách đây
mục cha
commit
369760e427
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      vite.config.ts

+ 6 - 2
vite.config.ts

@@ -44,9 +44,13 @@ export default defineConfig({
     Inspect(),
   ],
   test: {
-    environment: 'jsdom',
+    exclude: ['docs/*', 'playground/*', 'dist/*', 'node_modules/*'],
     globals: true,
-    threads: false,
+    environment: 'jsdom',
+    coverage: {
+      reporter: ['text', 'json', 'html'],
+      exclude: ['node_modules', 'dist', 'docs', 'playground', 'src/**/*.d.ts', 'src/**/*.test.ts'],
+    },
   },
   build: {
     lib: {