// What video-assist.spec.ts reads and writes (release 38 lane E): the clip // editor's three clips (clip-editor-fixture.mjs, copied under its own name so // no two specs edit one project), with a quick blur slide as its look — the // cut the Ask box proposes edits of. The editor stub's canned "model" // (editor-stub.mjs startVideoAssist) answers from the request's words. // Synthetic, like every fixture. import { readFileSync, writeFileSync } from "node:fs"; import path from "node:path"; import { makeClipEditorFixture } from "./clip-editor-fixture.mjs"; /** @param {{ reports: string, manifest: Function, cachedWindow: string, cues: Array<[number, number, string]> }} o */ export function makeVideoAssistFixture(o) { makeClipEditorFixture({ ...o, name: "video-assist-fixture", title: "The Video Assist Fixture" }); const file = path.join(o.reports, "video-assist-fixture", "video.manifest.json"); const doc = JSON.parse(readFileSync(file, "utf8")); doc.render = { ...doc.render, transition: 0.22, transitionStyle: "blurslide", qr: false, headerHeight: 0 }; writeFileSync(file, JSON.stringify(doc, null, 2) + "\n"); }