Files
hyperframes/packages/cli/src/commands/render.launchFailure.test.ts
T
Miguel Ángel a5496b1887 fix(producer): a BeginFrame capture that draws no first frame in 20 s switches to screenshot (#6701)
* fix(producer): a BeginFrame capture that draws no first frame in 20 s switches to screenshot

* test(cli): cover the Chrome launch failure messages a failed render prints
2026-10-29 00:49:04 +00:00

17 lines
702 B
TypeScript

import { describe, expect, it } from "vitest";
import { chromeLaunchFailure } from "./render.js";
describe("chromeLaunchFailure", () => {
it("names a sandbox that refused Chrome, with its remediation", () => {
const failure = chromeLaunchFailure(
"Failed to launch: bootstrap_check_in org.chromium.Chromium.MachPortRendezvousServer: Permission denied (1100)",
);
expect(failure?.title).toBe("Render failed — Chrome could not launch");
expect(failure?.remediation).toContain("outside the sandbox");
});
it("leaves a failure that is not a launch problem to the generic message", () => {
expect(chromeLaunchFailure("Composition has no duration")).toBeNull();
});
});