-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
47 lines (46 loc) · 1.4 KB
/
vitest.config.ts
File metadata and controls
47 lines (46 loc) · 1.4 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
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "jsdom",
include: ["lib/**/*.test.ts", "components/**/*.test.tsx"],
},
resolve: {
alias: [
{
find: "@lemmair/justune-runtime/agent-runner",
replacement: fileURLToPath(
new URL("./packages/justune-runtime/src/agent-runner.ts", import.meta.url),
),
},
{
find: "@lemmair/justune-runtime/client-identity",
replacement: fileURLToPath(
new URL("./packages/justune-runtime/src/client-identity.ts", import.meta.url),
),
},
{
find: "@lemmair/justune-runtime/justune-browser-sandbox-client",
replacement: fileURLToPath(
new URL("./packages/justune-runtime/src/justune-browser-sandbox-client.ts", import.meta.url),
),
},
{
find: "@lemmair/justune-runtime/runtime-constraints",
replacement: fileURLToPath(
new URL("./packages/justune-runtime/src/runtime-constraints.ts", import.meta.url),
),
},
{
find: "@lemmair/justune-runtime",
replacement: fileURLToPath(
new URL("./packages/justune-runtime/src/index.ts", import.meta.url),
),
},
{
find: "@",
replacement: fileURLToPath(new URL("./", import.meta.url)),
},
],
},
});