-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathvitest.config.ts
More file actions
43 lines (42 loc) · 1.41 KB
/
vitest.config.ts
File metadata and controls
43 lines (42 loc) · 1.41 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
import path from "node:path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [react()],
test: {
fileParallelism: false,
include: ["tests/**/*.test.{ts,tsx}"],
exclude: ["tests/api/**"],
},
resolve: {
alias: {
"#web": path.resolve(import.meta.dirname, "apps/web/src"),
"#desktop": path.resolve(import.meta.dirname, "apps/desktop"),
"#controller": path.resolve(import.meta.dirname, "apps/controller/src"),
"@": path.resolve(import.meta.dirname, "apps/web/src"),
"@web-gen": path.resolve(import.meta.dirname, "apps/web/lib"),
react: path.resolve(import.meta.dirname, "apps/web/node_modules/react"),
"react/jsx-runtime": path.resolve(
import.meta.dirname,
"apps/web/node_modules/react/jsx-runtime.js",
),
"react/jsx-dev-runtime": path.resolve(
import.meta.dirname,
"apps/web/node_modules/react/jsx-dev-runtime.js",
),
"react-dom": path.resolve(
import.meta.dirname,
"apps/web/node_modules/react-dom",
),
"react-router-dom": path.resolve(
import.meta.dirname,
"apps/web/node_modules/react-router-dom",
),
"@tanstack/react-query": path.resolve(
import.meta.dirname,
"apps/web/node_modules/@tanstack/react-query",
),
},
dedupe: ["react", "react-dom"],
},
});