-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (26 loc) · 695 Bytes
/
vitest.config.ts
File metadata and controls
29 lines (26 loc) · 695 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
import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
resolve: {
alias: {
nextTick: path.resolve(__dirname, "src/nextTick/node.ts"),
random: path.resolve(__dirname, "src/random/node.ts"),
},
},
test: {
coverage: {
provider: "istanbul",
include: ["src/**/*.ts"],
exclude: ["src/**/browser.ts"],
reporter: process.env.TEST_REPORT ? ["cobertura", "text"] : ["text", "html"],
},
...(process.env.TEST_REPORT
? {
reporters: ["default", "junit"],
outputFile: {
junit: "coverage/test-report.junit.xml",
},
}
: {}),
},
});