generated from defi-wonderland/aztec-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.agent.config.ts
More file actions
36 lines (34 loc) · 843 Bytes
/
vitest.agent.config.ts
File metadata and controls
36 lines (34 loc) · 843 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
33
34
35
36
import { defineConfig } from "vitest/config";
import { fileURLToPath } from "node:url";
import { dirname, resolve as pathResolve } from "node:path";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const nobleUtilsPath = pathResolve(
__dirname,
"node_modules/@noble/hashes/esm/utils.js",
);
export default defineConfig({
resolve: {
alias: {
"@noble/hashes/utils": nobleUtilsPath,
},
conditions: ["import", "module", "browser", "default"],
},
test: {
testTimeout: 30_000,
include: ["src/ts/agent/test/**/*.test.ts"],
fileParallelism: false,
server: {
deps: {
inline: [
/zod/,
/viem/,
/pino/,
/@aztec/,
/@noble\/(hashes|curves|ciphers)/,
/@scure/,
],
},
},
},
});