-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
50 lines (49 loc) · 1.44 KB
/
vitest.config.ts
File metadata and controls
50 lines (49 loc) · 1.44 KB
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
import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
globals: false,
projects: [
{
plugins: [tsconfigPaths()],
test: {
name: "unit",
include: ["app/**/*.test.ts", "app/**/*.test.tsx"],
exclude: [
"**/node_modules/**",
"**/build/**",
"**/dist/**",
"**/.{idea,git,cache,output,temp}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
"tests/integration/**",
"tests-examples/**",
"tests/e2e/**",
],
environment: "happy-dom",
setupFiles: ["./app/test-setup.ts"],
},
},
{
plugins: [tsconfigPaths()],
test: {
name: "integration",
include: ["tests/integration/**/*.test.ts"],
exclude: [
"**/node_modules/**",
"**/build/**",
"**/dist/**",
"**/.{idea,git,cache,output,temp}/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
"tests-examples/**",
"tests/e2e/**",
"**/helpers/**",
],
environment: "node",
pool: "forks",
maxWorkers: 1,
},
},
],
},
});