The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Tests: type the stubbed ComfyUI history entries
Claude3312ead9ef15
diff --git a/tests/comfy-provider.test.ts b/tests/comfy-provider.test.tsindex 27a9ad86..4a8d9b1d 100644--- a/tests/comfy-provider.test.ts+++ b/tests/comfy-provider.test.ts@@ -64,7 +64,7 @@ const json = (v: unknown, status = 200) => new Response(JSON.stringify(v), { staconst route: ModelRoute = { op: "edit", provider: "comfyui", endpoint: "selftest-image" };const model = { id: "m", routes: [route] } as unknown as ModelDef;const pollCtx = (externalId: string, meta: Record<string, unknown> = { workflowId: "selftest-image", nodeCount: 3 }) => ({ externalId, meta, route, model, createdAt: Date.now() });-const done = (outputs: Record<string, unknown>) => ({ status: { status_str: "success", completed: true }, outputs });+const done = (outputs: Record<string, Record<string, unknown>>) => ({ status: { status_str: "success", completed: true }, outputs });describe("ComfyUI poll (S5)", () => {it("retries instead of failing when /queue answers with a proxy error page", async () => {@@ -278,7 +278,7 @@ describe("ComfyUI output mapping", () => {it("follows VHS meta-batch passes to the one that saved the video", async () => {const prefix = "fuobe/gen-mm";- const pass = (n: number, outputs: Record<string, unknown>) => ({ prompt: [n, `pass-${n}`, { "22": { class_type: "VHS_VideoCombine", inputs: { filename_prefix: prefix } } }], ...done(outputs) });+ const pass = (n: number, outputs: Record<string, Record<string, unknown>>) => ({ prompt: [n, `pass-${n}`, { "22": { class_type: "VHS_VideoCombine", inputs: { filename_prefix: prefix } } }], ...done(outputs) });let queued = true;handler = (url) => {if (url.includes("/history/p-mm")) return json({ "p-mm": pass(1, {}) });