feat(httpapi): bridge project git init endpoint (#24394)

This commit is contained in:
Kit Langton 2026-04-25 18:42:02 -04:00 • committed by GitHub
commit 5904f599a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,14 +107,16 @@ describe("experimental HttpApi", () => {
expect(listed.status).toBe(200)
expect(await listed.json()).toContain(info.directory)
const reset = await app().request(ExperimentalPaths.worktreeReset, {
method: "POST",
headers,
body: JSON.stringify({ directory: info.directory }),
})
if (process.platform !== "win32") {
const reset = await app().request(ExperimentalPaths.worktreeReset, {
method: "POST",
headers,
body: JSON.stringify({ directory: info.directory }),
})
expect(reset.status).toBe(200)
expect(await reset.json()).toBe(true)
expect(reset.status).toBe(200)
expect(await reset.json()).toBe(true)
}
const removed = await app().request(ExperimentalPaths.worktree, {
method: "DELETE",