Skip to content

Commit aeb5fa6

Browse files
committed
fix: add Recording type casts in tests for tsc compatibility
1 parent 6f77162 commit aeb5fa6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/index.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, test, expect, beforeEach, afterEach } from "bun:test";
2-
import { Proof } from "./index";
2+
import { Proof, type Recording } from "./index";
33
import { join } from "path";
44
import { mkdtemp, readFile, rm } from "fs/promises";
55
import { tmpdir } from "os";
@@ -48,7 +48,7 @@ describe("Proof", () => {
4848
mode: "terminal",
4949
label: "cli",
5050
description: "CLI tests",
51-
});
51+
}) as Recording;
5252

5353
expect(recording.mode).toBe("terminal");
5454
expect(recording.path).toEndWith(".html");
@@ -84,7 +84,7 @@ describe("Proof", () => {
8484
command: `bun test ${join(import.meta.dir, "../test-app/cli/app.test.ts")}`,
8585
mode: "terminal",
8686
label: "cli",
87-
});
87+
}) as Recording;
8888

8989
const html = await readFile(recording.path, "utf-8");
9090
expect(html).toContain("<!DOCTYPE html>");
@@ -107,7 +107,7 @@ describe("Proof", () => {
107107
command: "echo hello && echo world",
108108
mode: "terminal",
109109
label: "echo",
110-
});
110+
}) as Recording;
111111

112112
expect(recording.mode).toBe("terminal");
113113
const castContent = await readFile(recording.path.replace(".html", ".cast"), "utf-8");

0 commit comments

Comments
 (0)