-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvitest.e2e.config.ts
More file actions
49 lines (44 loc) · 1.17 KB
/
vitest.e2e.config.ts
File metadata and controls
49 lines (44 loc) · 1.17 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
48
49
/**
* @file vitest.e2e.config.ts
* @author nich.xbt
* @copyright (c) 2026 n1ch0las
* @license MIT
* @repository universal-crypto-mcp
* @version 0.4.14.3
* @checksum n1ch-0las-4e49-4348-786274000000
*/
import { defineConfig } from "vitest/config"
import { fileURLToPath } from "url"
import { dirname, resolve } from "path"
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
export default defineConfig({
test: {
globals: true,
environment: "node",
include: ["tests/e2e/**/*.test.ts"],
exclude: ["node_modules", "dist", "build"],
setupFiles: ["./tests/e2e/setup.ts"],
// E2E tests need longer timeouts for real API calls and network operations
testTimeout: 60000,
hookTimeout: 60000,
// Run tests sequentially to avoid rate limiting and resource conflicts
pool: "forks",
forks: {
singleFork: true
},
// Disable parallelism for E2E tests
sequence: {
concurrent: false
},
reporters: ["default"],
// Retry failed tests once (network flakiness)
retry: 1
},
resolve: {
alias: {
"@": resolve(__dirname, "./src")
}
}
})
/* EOF - nich.xbt | 0.14.9.3 */