-
Notifications
You must be signed in to change notification settings - Fork 7
/
vitest.config.ts
46 lines (45 loc) · 1.01 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
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import svgr from "vite-plugin-svgr";
/// <reference types="vitest" />
export default defineConfig({
plugins: [tsconfigPaths(), react(), svgr({})],
define: {
"process.env": process.env,
},
root: "./",
test: {
setupFiles: "./setupTests.ts",
include: ["src/**/*.test.tsx", "src/**/*.test.ts"],
css: true,
pool: "vmThreads",
poolOptions: {
useAtomics: true,
},
environment: 'happy-dom',
browser: {
enabled: true,
name: "chromium",
headless: true,
provider: "playwright",
},
testTimeout: 3000,
coverage: {
provider: "istanbul",
include: ["src/**/*.{ts,tsx}"],
exclude: [
"node_modules/**",
"dist/**",
"src/**/*.{stories,fixture}.{ts,tsx}",
"src/**/*.{test,spec}.{ts,tsx}",
"src/app/page.tsx",
"src/app/layout.tsx",
"src/app/cosmos",
"src/siheom",
],
all: true,
reporter: ["json", "text", "html"],
},
},
});