-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
41 lines (39 loc) · 836 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
41 lines (39 loc) · 836 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
import { defineConfig } from "vitest/config";
const coverageInclude = [
"server/api/**/*.ts",
"server/utils/**/*.ts",
"utils/**/*.ts",
"composables/**/*.ts",
"plugins/**/*.ts",
"public/sw.js",
];
export default defineConfig({
test: {
coverage: {
all: true,
clean: true,
exclude: [
"**/*.d.ts",
"**/*.config.*",
"**/node_modules/**",
".nuxt/**",
".output/**",
"coverage/**",
"server/db/**",
"tests/**",
],
include: coverageInclude,
provider: "v8",
reporter: ["text", "json-summary", "html"],
reportsDirectory: "coverage",
thresholds: {
branches: 20,
functions: 40,
lines: 30,
statements: 30,
},
},
environment: "node",
unstubGlobals: true,
},
});