-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
35 lines (34 loc) · 1001 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
import { defineVitestConfig } from "@nuxt/test-utils/config";
import path from "path";
export default defineVitestConfig({
test: {
environment: "happy-dom",
coverage: {
reportOnFailure: true,
reportsDirectory: path.resolve(__dirname, "coverage"),
exclude: [
// Default exclusion list
"coverage/**",
"dist/**",
"**/[.]**",
"packages/*/test?(s)/**",
"**/*.d.ts",
"**/virtual:*",
"**/__x00__*",
"**/\x00*",
"cypress/**",
"test?(s)/**",
"test?(-*).?(c|m)[jt]s?(x)",
"**/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)",
"**/__tests__/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
"**/vitest.{workspace,projects}.[jt]s?(on)",
"**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}",
// Additional exclusions
//
// Exclude shadcn-ui
"**/components/ui/**",
],
},
},
});