-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
47 lines (46 loc) · 978 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
47 lines (46 loc) · 978 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
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
coverage: {
enabled: true,
provider: "v8",
reporter: ["text", "html", "json", "lcov"],
include: ["src/**/*.ts"],
exclude: [
"src/**/*.d.ts",
"commitlint.config.js",
"**/commitlint.config.js",
"**/*.config.js",
],
thresholds: {
lines: 90,
functions: 90,
branches: 85,
statements: 90,
},
},
projects: [
{
test: {
name: "unit",
include: ["test/unit/**/*.test.ts"],
environment: "node",
},
},
{
test: {
name: "integration",
include: ["test/integration/**/*.test.ts"],
environment: "node",
},
},
{
test: {
name: "e2e",
include: ["test/e2e/**/*.test.ts"],
environment: "node",
},
},
],
},
});