-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvitest.config.ts
55 lines (54 loc) · 1.46 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { defineConfig } from 'vitest/config'
import { config } from "dotenv";
import react from '@vitejs/plugin-react';
import tsconfigPaths from "vite-tsconfig-paths";
import svgr from "vite-plugin-svgr";
const { parsed } = config({ path: ".env" });
export default defineConfig({
root: "./",
optimizeDeps: {
include: ["@vitest/coverage-istanbul"],
},
define: {
"import.meta.env": parsed ?? {},
},
plugins: [react() as any, tsconfigPaths(), svgr()],
test: {
pool: "vmThreads",
poolOptions: {
useAtomics: true,
},
coverage: {
enabled: false,
provider: "istanbul",
exclude: [
"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,astro,playwright}.config.*",
"**/vitest.{workspace,projects}.[jt]s?(on)",
"**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}",
"drizzle.config.ts",
"src/stories/**",
"src/siheom/**",
"src/pages/**",
"src/layouts/**",
"src/astro/**",
"src/adapters/**",
"src/lib/**",
"src/middleware/**",
"src/shared/email",
],
},
},
});