test(cli): read the transcribe ledger row as JSON, for Windows paths

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Miao Yang
2026-11-02 11:43:39 +08:00
co-authored by Claude Opus 5.5
parent 2179733fe5
commit 87532c97b8
+1 -1
View File
@@ -78,6 +78,6 @@ describe("HeyGen transcription", () => {
mkdirSync(join(dir, "work"));
await transcribeWithHeygen(audio, join(dir, "work", "transcript.json"));
const rows = readFileSync(join(dir, ".hyperframes/heygen-jobs.jsonl"), "utf8");
expect(rows).toContain(`transcribe ${audio}`);
expect(JSON.parse(rows.trim().split("\n")[0]!).what).toBe(`transcribe ${audio}`);
});
});