mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 12:54:29 +00:00
feat(cli): add --resolution flag to hyperframes render for one-line 4k
This commit is contained in:
@@ -239,4 +239,19 @@ describe("buildDockerRunArgs", () => {
|
||||
const args = buildDockerRunArgs({ ...FIXED_INPUT, options: BASE });
|
||||
expect(args).not.toContain("--composition");
|
||||
});
|
||||
|
||||
it("forwards --resolution to the container when outputResolution is set", () => {
|
||||
const args = buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
options: { ...BASE, outputResolution: "landscape-4k" },
|
||||
});
|
||||
const idx = args.indexOf("--resolution");
|
||||
expect(idx).toBeGreaterThan(-1);
|
||||
expect(args[idx + 1]).toBe("landscape-4k");
|
||||
});
|
||||
|
||||
it("omits --resolution when outputResolution is not set", () => {
|
||||
const args = buildDockerRunArgs({ ...FIXED_INPUT, options: BASE });
|
||||
expect(args).not.toContain("--resolution");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user