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: Shorts' placeholder steps run at five times the demo's pace
Adarshea9f5725c96d
diff --git a/tests/shorts-api.test.ts b/tests/shorts-api.test.tsindex fce20d98..1c2890d3 100644--- a/tests/shorts-api.test.ts+++ b/tests/shorts-api.test.ts@@ -34,6 +34,14 @@ const mixedPreviewRoute = await import("@/app/api/mixed-media/preview/route");const mixedEstimateRoute = await import("@/app/api/mixed-media/estimate/route");const mixedRetryRoute = await import("@/app/api/mixed-media/retry/route");const mixedProgressRoute = await import("@/app/api/mixed-media/progress/route");+const { mockProvider } = await import("@/server/providers/mock");++// The placeholders here run at 5× the demo's pace (a demo clip takes 7 s): these chains have up to a dozen steps.+const demoPoll = mockProvider.poll.bind(mockProvider);+mockProvider.poll = (ctx) => {+ const started = Number(ctx.meta.startedAt);+ return demoPoll({ ...ctx, meta: { ...ctx.meta, startedAt: Date.now() - (Date.now() - started) * 5 } });+};const json = (method: string, body?: unknown) =>new Request("http://x/api", { method, headers: { "Content-Type": "application/json" }, body: body === undefined ? undefined : JSON.stringify(body) });