fix(e2e): add health check mock

This commit is contained in:
Brendan Allan 2026-05-26 15:25:18 +08:00
parent 717e74f3e5
commit 940257baeb
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E

View file

@ -35,6 +35,10 @@ export async function mockOpenCodeServer(page: Page, config: MockServerConfig) {
"/agent": [{ name: "build", mode: "primary" }],
"/vcs": { branch: "main", default_branch: "main" },
"/session": config.sessions,
"/global/health": {
healthy: true,
version: "mock",
},
}
await page.route("**/*", async (route) => {