-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (28 loc) · 860 Bytes
/
vitest.config.ts
File metadata and controls
29 lines (28 loc) · 860 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 { defineConfig } from "vitest/config";
export default defineConfig({
test: {
deps: {
// We turn this off so that vitest catches "default imports" vs "namespace imports" issues
// instead of treating both types of imports as the same.
interopDefault: false
},
setupFiles: ["test/setup-tests.ts"],
testTimeout: 60000,
environment: "node",
include: ["test/**/*.test.ts"],
globals: true,
clearMocks: true,
coverage: {
provider: "istanbul",
reporter: ["text", "json", "html", "lcov"],
include: ["src/**/*.ts"],
exclude: ["src/index.ts", "src/lib/Display.ts"],
thresholds: {
"lines": 90,
"functions": 90,
"branches": 90,
"statements": 90
}
}
}
})