fix(media-use): ingest derived video outputs (#2310)

* fix(media-use): ingest derived video outputs

* style(media-use): keep ingest types after imports
This commit is contained in:
Miguel Ángel
2026-07-12 22:30:31 -04:00
committed by GitHub
parent 38badff820
commit 7c0dcb0b14
3 changed files with 20 additions and 3 deletions
+14
View File
@@ -455,6 +455,20 @@ test("--help exits 0", () => {
assert.ok(out.includes("--stats"));
});
test("--from registers a derived video as documented", () => {
setup();
const source = join(tmp, "derived.mp4");
writeFileSync(source, "derived video bytes");
const out = runResolve(["--from", source, "--type", "video", "--project", tmp, "--json"]);
const parsed = JSON.parse(out.trim());
assert.equal(parsed.ok, true);
assert.equal(parsed.type, "video");
assert.match(parsed.path, /^\.media\/video\/video_001\.mp4$/);
assert.equal(readManifest(tmp)[0]?.type, "video");
cleanup();
});
test("unknown type error lists grade and lut", () => {
try {
runResolve(["--type", "bogus", "--intent", "x"], { stdio: "pipe" });