-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvitest.config.ts
33 lines (32 loc) · 964 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
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
workspace: ["packages/*/vitest.config.{unit,integration}.ts"],
coverage: {
exclude: [
"coverage/**",
"**/dist/**",
"**/node_modules/**",
"**/[.]**",
"packages/*/test?(s)/**",
"**/*.d.ts",
"**/virtual:*",
"**/__x00__*",
"**/\x00*",
"cypress/**",
"test?(s)/**",
"test?(-*).?(c|m)[jt]s?(x)",
"**/*{.,-}{test,spec,bench,benchmark}?(-d).?(c|m)[jt]s?(x)",
"**/__tests__/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
"**/vitest.{workspace,projects}.[jt]s?(on)",
"**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}",
// append more patterns here
"**/types/**",
"**/*.test/**",
"examples/**",
"**/integration/**",
],
},
},
});