-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
41 lines (40 loc) · 971 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
41 lines (40 loc) · 971 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
41
import path from "path";
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
globals: true,
setupFiles: "./vitest.setup.ts",
watch: false, // Disable watch mode by default
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,playwright}.config.*",
"tests/**",
],
coverage: {
exclude: [
"docs/inspo/sandbox/**",
"node_modules/**",
"dist/**",
"coverage/**",
"**/*.d.ts",
"**/*.config.*",
"scripts/**",
".next/**",
".taskmaster/**",
".specstory/**",
"exports/**",
],
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./"),
},
},
});