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
Restore 11: the requirement index's tests know the gated IC-LoRAs; Settings links reach LoRAs' keys
Claudefc238bd1ae81
diff --git a/tests/gpu-requirements.test.ts b/tests/gpu-requirements.test.tsindex a0378ba7..bab06f7a 100644--- a/tests/gpu-requirements.test.ts+++ b/tests/gpu-requirements.test.ts@@ -70,9 +70,9 @@ describe("requirements.json", () => {expect([...hosts]).toEqual(["huggingface.co"]);});- it("marks exactly the LTX-2.5 files as gated", () => {+ it("marks exactly the LTX-2.5 files as gated (the model's repo, and Lightricks' Restore and Detail Refine IC-LoRAs)", () => {const gated = files.filter(([, f]) => f.gated).map(([k]) => k);- expect(gated.sort()).toEqual(files.filter(([, f]) => f.url.includes("/Lightricks/LTX-2.5/")).map(([k]) => k).sort());+ expect(gated.sort()).toEqual(files.filter(([, f]) => /\/Lightricks\/LTX-2\.5(\/|-22b-IC-LoRA-(Restore|Refine-Details)\/)/.test(f.url)).map(([k]) => k).sort());expect(gated.length).toBeGreaterThan(0);});@@ -108,9 +108,10 @@ describe("requirements.json", () => {expect(index.packs["ComfyUI-ThinkSound_Wrapper"].isolated).toBe(true);});- it("stays within its size budget (200 KB, 25 KB gzipped)", () => {+ // 26 KB gzipped since Restore & colourise's graph and pack (o/archive-restore): the library was at 24.8 KB before it.+ it("stays within its size budget (200 KB, 26 KB gzipped)", () => {expect(Buffer.byteLength(text)).toBeLessThanOrEqual(200 * 1024);- expect(zlib.gzipSync(text).length).toBeLessThanOrEqual(25 * 1024);+ expect(zlib.gzipSync(text).length).toBeLessThanOrEqual(26 * 1024);});});diff --git a/tests/settings-links.test.ts b/tests/settings-links.test.tsindex aa911f90..f2ba31b2 100644--- a/tests/settings-links.test.ts+++ b/tests/settings-links.test.ts@@ -7,8 +7,8 @@ import { describe, expect, it } from "vitest";const root = path.join(__dirname, "../src");const files = (d: string): string[] => fs.readdirSync(d, { withFileTypes: true }).flatMap((e) => (e.isDirectory() ? files(path.join(d, e.name)) : /\.tsx?$/.test(e.name) ? [path.join(d, e.name)] : []));const form = fs.readFileSync(path.join(root, "components/settings-form.tsx"), "utf8");-/** The anchors Settings has: its sections' and fields' ids (id="…", or a Section's id prop on its own line), the form's and the sections around it. */-const page = [form, ...["components/gpu/account-gpu-section.tsx", "components/keys/your-keys.tsx", "components/owner-settings.tsx", "components/accounts-admin.tsx"].map((f) => fs.readFileSync(path.join(root, f), "utf8"))].join("\n");+/** The anchors Settings has: its sections' and fields' ids (id="…", or a Section's id prop on its own line), the form's and the sections around it (Settings → LoRAs' keys too). */+const page = [form, ...["components/gpu/account-gpu-section.tsx", "components/keys/your-keys.tsx", "components/owner-settings.tsx", "components/accounts-admin.tsx", "components/lora-settings.tsx"].map((f) => fs.readFileSync(path.join(root, f), "utf8"))].join("\n");const anchors = new Set([...page.matchAll(/\bid="([a-z0-9-]+)"/g)].map((m) => m[1]));describe("Settings deep links", () => {