-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
37 lines (36 loc) · 898 Bytes
/
vitest.config.ts
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
import { fileURLToPath } from "node:url";
import { configDefaults, defineConfig } from "vitest/config";
import viteConfig from "./vite.config";
export default defineConfig({
...viteConfig,
test: {
environment: "jsdom",
exclude: [
...configDefaults.exclude,
"e2e/**",
"node_modules/*",
".ignored_node_modules/**",
],
globals: true,
root: fileURLToPath(new URL("./", import.meta.url)),
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
exclude: [
"coverage/**",
"dist/**",
"**/[.]**",
"packages/*/test?(s)/**",
"**/*.d.ts",
"cypress/**",
"test?(s)/**",
"test?(-*).?(c|m)[jt]s?(x)",
"**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)",
"**/__tests__/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
"**/node_modules/**",
".ignored_node_modules/**",
],
},
},
});