-
-
Notifications
You must be signed in to change notification settings - Fork 219
/
Copy pathvitest.config.mts
43 lines (40 loc) · 1.03 KB
/
vitest.config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/// <reference types="vite/client" />
import react from '@vitejs/plugin-react';
import tsconfig from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tsconfig()],
test: {
coverage: {
// clean: true,
enabled: false,
exclude: [
'**/*.d.ts',
'src/components/index.tsx',
'src/components/GlobalContext.tsx',
'src/react-chrono.ts',
'src/index.tsx',
'src/demo/**',
'src/examples/**',
'src/models/**',
'src/components/icons/**',
'**/*.config.js',
'eslintrc.js',
],
provider: 'v8',
reporter: ['lcov', 'clover', 'html'],
reportsDirectory: './coverage',
},
environment: 'jsdom',
globals: true,
include: [
'./src/components/**/*.test.{tsx,ts}',
'./src/utils/**/*.test.{tsx,ts}',
],
minWorkers: 2,
setupFiles: './src/test-setup.js',
silent: false,
update: true,
},
});