mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 06:30:03 +00:00
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:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user