-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (27 loc) · 1.02 KB
/
Copy pathvitest.config.ts
File metadata and controls
29 lines (27 loc) · 1.02 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
import path from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const here = path.dirname(fileURLToPath(import.meta.url));
const sdkSrc = path.resolve(here, "../packages/sdk/src");
export default defineConfig({
test: {
environment: "node",
include: ["test/**/*.test.ts"],
pool: "forks",
server: {
deps: {
external: [/^node:/]
}
}
},
resolve: {
alias: [
{ find: /^@oversync\/sdk\/types$/, replacement: path.join(sdkSrc, "types/index.ts") },
{ find: /^@oversync\/sdk\/secrets$/, replacement: path.join(sdkSrc, "secrets/index.ts") },
{ find: /^@oversync\/sdk\/ethereum$/, replacement: path.join(sdkSrc, "ethereum/index.ts") },
{ find: /^@oversync\/sdk\/soroban$/, replacement: path.join(sdkSrc, "soroban/index.ts") },
{ find: /^@oversync\/sdk\/state-machine$/, replacement: path.join(sdkSrc, "state-machine/index.ts") },
{ find: /^@oversync\/sdk$/, replacement: path.join(sdkSrc, "index.ts") }
]
}
});