mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-05 05:30:02 +00:00
fix(e2e): add health check mock
This commit is contained in:
parent
717e74f3e5
commit
940257baeb
1 changed files with 4 additions and 0 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue