-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.js
34 lines (33 loc) · 986 Bytes
/
vitest.config.js
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
import { defineConfig } from "vitest/config";
export default defineConfig(
{
test: {
include: [ "src/test/**/*.test.ts" ],
reporters: [
"default",
[ "junit", { outputFile: "lib/test/junit.xml", suiteName: "observable tests" } ]
],
env: {
NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ""} --expose-gc`
},
browser: {
provider: "playwright",
name: "chromium",
headless: true,
screenshotFailures: false,
providerOptions: {
launch: {
args: [
"--js-flags=--expose-gc"
]
}
}
},
coverage: {
enabled: true,
reporter: [ "text-summary", "json", "lcov", "clover", "cobertura", "html" ],
reportsDirectory: "lib/test/coverage",
include: [ "src/main/**/*.ts" ]
}
}
});