-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
20 lines (19 loc) · 632 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
20 lines (19 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
typecheck: {
tsconfig: "./tsconfig.json",
enabled: true,
},
coverage: {
reporter: ["text", "lcov", "json-summary", "json"],
reportsDirectory: "./coverage",
thresholds: {
lines: 80, // Minimum % of lines covered
functions: 80, // Minimum % of functions covered
branches: 80, // Minimum % of branches covered
statements: 80, // Minimum % of statements covered
},
},
},
});