-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
48 lines (47 loc) · 1003 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
48 lines (47 loc) · 1003 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { defineConfig } from 'vitest/config'
import viteTsConfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
test: {
environment: 'jsdom',
setupFiles: ['./src/test-utils/setup.ts'],
include: ['**/*.{test,spec}.{ts,tsx}'],
exclude: ['node_modules', 'dist', '.output', 'e2e/'],
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'lcov', 'json'],
thresholds: {
global: {
statements: 70,
branches: 65,
functions: 70,
lines: 70,
},
},
exclude: [
'node_modules/',
'dist/',
'.output/',
'coverage/',
'**/*.d.ts',
'**/*.config.{ts,js}',
'**/hey-api.ts',
'**/routeTree.gen.ts',
'**/types.gen.ts',
'**/zod.gen.ts',
'**/client.gen.ts',
'**/*.gen.ts',
'**/*.gen.tsx',
'e2e/',
'src/test-utils/',
'src/logo.svg',
],
},
globals: true,
globalSetup: './src/test-utils/global-setup.ts',
},
plugins: [
viteTsConfigPaths({
projects: ['./tsconfig.json'],
}),
],
})