Skip to content

Commit a42190a

Browse files
StiensWoutclaude
andcommitted
test(server): keep the checksum fixture ArrayBuffer-backed
Vitest's optional types import "jsdom". With @types/jsdom installed for the math DOM tests, pnpm's hidden hoist makes it resolvable there, and its `reference lib="dom"` gives crypto.subtle DOM's BufferSource, which only accepts ArrayBuffer-backed views. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 7f3cc3d commit a42190a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/server/src/cloud/pinnedRuntime.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
const version = "1.2.3";
2424
const archiveName = `t3-${version}-linux-x64.tar.gz`;
2525
const archiveBytes = new TextEncoder().encode("not really a tarball");
26-
const archiveHex = (bytes: Uint8Array) =>
26+
const archiveHex = (bytes: Uint8Array<ArrayBuffer>) =>
2727
Effect.promise(() => crypto.subtle.digest("SHA-256", bytes)).pipe(
2828
Effect.map((digest) =>
2929
Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join(""),

0 commit comments

Comments
 (0)