-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (36 loc) · 801 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
37 lines (36 loc) · 801 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
import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "jsdom",
setupFiles: ["src/setupVitest.ts"],
include: [
"src/**/*.{test,spec}.ts",
"src/**/*.{test,spec}.tsx",
"e2e-native/**/*.{test,spec}.ts",
],
coverage: {
include: ["src/**/*.ts"],
exclude: [
"src/rspc/**",
"src/e2e/**",
"src/**/*.test.*",
"src/**/*.spec.*",
"src/**/*.d.ts",
"src/**/types/**",
],
reporter: ["text", "html", "json-summary"],
thresholds: {
statements: 60,
branches: 60,
functions: 60,
lines: 60,
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
});