import { describe, it, expect } from "vitest"; import { renderOutputBase } from "./exports"; import { nextTaskTitle } from "./preview"; describe("renderOutputBase", () => { it("follows the panel's house convention", () => { expect(renderOutputBase("UNG_102_019_010", "v001")).toBe("UNG_102_019_010_cmp_TT_v001"); }); // createExport names the comp task it creates after this basename, and // buildPreviewManifest names the MOV/MP4 off the same call — so a shot queued // with no task ends up with a task titled exactly like its preview file. The // title already carries the version, which makes finalizePreview's rename of // the task to the delivered version a no-op on that first export. it("gives a freshly created comp task a title finalizePreview leaves alone", () => { const title = renderOutputBase("UNG_102_019_010", "v003"); expect(nextTaskTitle(title, "v003")).toBe(title); }); });