-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathvitest.config.ts
More file actions
75 lines (74 loc) · 1.66 KB
/
Copy pathvitest.config.ts
File metadata and controls
75 lines (74 loc) · 1.66 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'e2e/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
'use-travel/**',
'zustand-travel/**',
],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov'],
reportsDirectory: './coverage',
exclude: [
'benchmarks/**',
'examples/**',
'node_modules/**',
'dist/**',
'docs-site/**',
'e2e/**',
'use-travel/**',
'zustand-travel/**',
'test/**',
'**/*.config.*',
'**/*.d.ts',
],
thresholds: {
statements: 85,
branches: 80,
functions: 85,
lines: 85,
'src/travels.ts': {
statements: 90,
branches: 85,
functions: 90,
lines: 90,
},
'src/persistence.ts': {
statements: 95,
branches: 90,
functions: 95,
lines: 95,
},
'src/internal/history-view.ts': {
statements: 90,
branches: 85,
functions: 90,
lines: 90,
},
'src/replay.ts': {
statements: 95,
branches: 95,
functions: 95,
lines: 95,
},
'src/utils.ts': {
statements: 90,
branches: 90,
functions: 90,
lines: 90,
},
},
},
},
define: {
__DEV__: false,
},
});