-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
26 lines (25 loc) · 730 Bytes
/
vitest.config.ts
File metadata and controls
26 lines (25 loc) · 730 Bytes
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
import react from '@vitejs/plugin-react';
import viteTsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [react(), viteTsconfigPaths()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
include: ['src/**/*.{test,spec}.{js,jsx,ts,tsx}'],
exclude: ['e2e/**', 'node_modules/**'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/**/*'],
exclude: ['**/*.test.ts', '**/*.spec.ts', '**/*.d.ts'],
// thresholds: {
// statements: 70,
// branches: 65,
// functions: 70,
// lines: 70,
// },
},
},
});