Files
webadderall eaf87be95b Recordly 2.0 local review stack 2/6
Dependency-ordered review preparation. Not pushed or remotely reviewed.
2026-11-06 05:24:21 +11:00

11 lines
493 B
TypeScript

import { expect, it } from "vitest";
import { parseNativeCaptureInterruption } from "./interruption";
it("retains OS errors and never treats partial output as normal completion", () => {
expect(
parseNativeCaptureInterruption(
"Recording started\nCAPTURE_INTERRUPTED: Screen permission revoked\nRecording interrupted. Output path: /take.mp4",
),
).toBe("Screen permission revoked");
expect(parseNativeCaptureInterruption("Recording stopped. Output path: /take.mp4")).toBeNull();
});