-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
33 lines (32 loc) · 863 Bytes
/
vitest.config.mts
File metadata and controls
33 lines (32 loc) · 863 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
import { configDefaults, defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
globals: true,
setupFiles: "src/setupTests.ts",
reporters: ["default", "html", "json"],
coverage: {
exclude: [
...(configDefaults.coverage.exclude || []),
"html/**",
"build/**/*",
".yarn/**/*",
"next.config.js",
"**/.{idea,git,cache,output,temp,yarn}/**",
],
provider: "istanbul",
reporter: ["json", "text", "html", "json-summary", "lcov"],
reportsDirectory: "./src/__tests__/coverage",
reportOnFailure: true,
thresholds: {
autoUpdate: true,
statements: 9,
branches: 5,
functions: 8.57,
lines: 9.37,
},
},
},
});