-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.integration.config.ts
More file actions
27 lines (26 loc) · 1015 Bytes
/
Copy pathvitest.integration.config.ts
File metadata and controls
27 lines (26 loc) · 1015 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
import { resolve } from "node:path";
import { defineConfig } from "vitest/config";
// Standalone config for live-CLI integration tests under `tests/integration/`.
// Kept out of the default `vitest run` glob so `pnpm test` stays fast and
// hermetic. Invoke explicitly via `pnpm test:integration:providers`.
export default defineConfig({
resolve: {
alias: {
"@": resolve(import.meta.dirname, "src"),
},
},
test: {
name: "integration",
environment: "node",
include: ["tests/integration/**/*.test.ts"],
// Each provider spins up a real CLI process, waits for session
// discovery, then resumes. Five minutes per test gives slower providers
// (Antigravity, OpenCode) headroom on a cold machine.
testTimeout: 300_000,
hookTimeout: 60_000,
// Run sequentially — concurrent real CLIs would compete for terminal
// resources, auth tokens, and (most importantly) provider rate limits.
fileParallelism: false,
sequence: { concurrent: false },
},
});