feat(FN-2310): merge fusion/fn-2310

This commit is contained in:
gsxdsm
2026-04-24 03:12:56 -07:00
parent 8a0885ad48
commit 159e40b42d
7 changed files with 608 additions and 46 deletions

View File

@@ -2799,6 +2799,32 @@ describe("registerProject", () => {
})
);
});
it("includes cloneUrl when cloning during registration", async () => {
globalThis.fetch = vi.fn().mockReturnValue(mockFetchResponse(true, FAKE_PROJECT));
await registerProject({
name: "Test Project",
path: "/path/to/new/project",
isolationMode: "child-process",
nodeId: "node-1",
cloneUrl: "https://github.com/runfusion/fusion.git",
});
expect(globalThis.fetch).toHaveBeenCalledWith(
"/api/projects",
expect.objectContaining({
method: "POST",
body: JSON.stringify({
name: "Test Project",
path: "/path/to/new/project",
isolationMode: "child-process",
nodeId: "node-1",
cloneUrl: "https://github.com/runfusion/fusion.git",
}),
}),
);
});
});
describe("unregisterProject", () => {