Browse Source

chore: coverage setup

alvarosabu 1 year ago
parent
commit
369760e427
1 changed files with 6 additions and 2 deletions
  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: {