forked from adoptium/adoptium.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
40 lines (39 loc) · 900 Bytes
/
Copy pathvitest.config.mts
File metadata and controls
40 lines (39 loc) · 900 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
// Some portions generated by Co-Pilot
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
resolve: {
tsconfigPaths: true,
},
test: {
environment: "jsdom",
css: false,
setupFiles: ["./vitest-setup.tsx"],
testTimeout: 30000,
coverage: {
provider: "v8",
reporter: ["text", "lcov", "html"],
reportOnFailure: true,
exclude: [
"**/node_modules/**",
"**/__tests__/**",
"**/__mocks__/**",
"**/*.test.{ts,tsx}",
"**/*.spec.{ts,tsx}",
"**/*.d.ts",
"**/*.config.{js,mjs,ts,mts}",
".next/**",
"coverage/**",
"scripts/**",
"vitest-setup.tsx",
],
thresholds: {
lines: 0,
functions: 0,
branches: 0,
statements: 0,
},
},
},
});