-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.e2e.config.ts
More file actions
32 lines (30 loc) · 912 Bytes
/
Copy pathvitest.e2e.config.ts
File metadata and controls
32 lines (30 loc) · 912 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
/**
* vitest.e2e.config.ts
*
* Separate Vitest configuration for E2E tests that run against real OpenCode nodes.
* Run with: npm run test:e2e
*
* Design decisions:
* - 60s testTimeout: matches the SSE idle-wait ceiling for slow prompts
* - 15s hookTimeout: enough for beforeEach/afterEach session cleanup
* - singleFork sequential execution: prevents parallel SSE connections from
* interfering with each other on the same node
* - verbose reporter: shows individual test names/timings for long-running E2E suites
*/
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["tests/e2e/**/*.e2e.ts"],
testTimeout: 60_000,
hookTimeout: 15_000,
pool: "forks",
poolOptions: {
forks: {
singleFork: true,
},
},
reporter: "verbose",
// Do NOT use the default vitest watch mode for E2E
watch: false,
},
});