-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
32 lines (29 loc) · 889 Bytes
/
vitest.config.ts
File metadata and controls
32 lines (29 loc) · 889 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
import { resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const currentDir = fileURLToPath(new URL(".", import.meta.url));
export default defineConfig({
resolve: {
alias: {
"@kmux/core": resolve(currentDir, "packages/core/src/index.ts"),
"@kmux/proto": resolve(currentDir, "packages/proto/src/index.ts"),
"@kmux/persistence": resolve(
currentDir,
"packages/persistence/src/index.ts"
),
"@kmux/metadata": resolve(currentDir, "packages/metadata/src/index.ts"),
"@kmux/ui": resolve(currentDir, "packages/ui/src/index.ts")
}
},
test: {
environment: "node",
globals: true,
include: [
"packages/**/*.test.ts",
"packages/**/*.test.tsx",
"apps/**/*.test.ts",
"apps/**/*.test.tsx",
"scripts/**/*.test.mjs"
]
}
});