Skip to content

Commit 43b8a1c

Browse files
cliffhallclaude
andcommitted
test(memory): cast the replaced-lock readFile mock through unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 7be08e9 commit 43b8a1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/memory/__tests__/file-lock.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe("withFileLock", () => {
147147
.mockImplementationOnce((async () => {
148148
await fs.writeFile(lockPath, "fresh");
149149
return "fresh";
150-
}) as typeof fs.readFile);
150+
}) as unknown as typeof fs.readFile);
151151

152152
await expect(
153153
withFileLock(lockPath, async () => "ran", fast),

0 commit comments

Comments
 (0)