mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 10:06:21 +00:00
fix(render): surface structured outcomes (#2153)
This commit is contained in:
@@ -172,6 +172,7 @@ describe("buildDockerRunArgs", () => {
|
||||
videoFrameFormat: "png",
|
||||
quiet: true,
|
||||
debug: true,
|
||||
bestEffort: false,
|
||||
entryFile: "compositions/intro.html",
|
||||
experimentalFastCapture: true,
|
||||
},
|
||||
@@ -191,6 +192,7 @@ describe("buildDockerRunArgs", () => {
|
||||
expect(args).toContain("png");
|
||||
expect(args).toContain("--quiet");
|
||||
expect(args).toContain("--debug");
|
||||
expect(args).toContain("--no-best-effort");
|
||||
expect(args).toContain("--gpu");
|
||||
expect(args).toContain("--no-browser-gpu");
|
||||
expect(args).toContain("--hdr");
|
||||
@@ -199,6 +201,21 @@ describe("buildDockerRunArgs", () => {
|
||||
expect(args).toContain("--experimental-fast-capture");
|
||||
});
|
||||
|
||||
it("forwards only an explicit strict-readiness opt-in", () => {
|
||||
const compatible = buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
options: { ...BASE, bestEffort: true },
|
||||
});
|
||||
expect(compatible).not.toContain("--best-effort");
|
||||
expect(compatible).not.toContain("--no-best-effort");
|
||||
|
||||
const strict = buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
options: { ...BASE, bestEffort: false },
|
||||
});
|
||||
expect(strict).toContain("--no-best-effort");
|
||||
});
|
||||
|
||||
it("forwards --experimental-fast-capture only when enabled", () => {
|
||||
const on = buildDockerRunArgs({
|
||||
...FIXED_INPUT,
|
||||
|
||||
Reference in New Issue
Block a user