Skip to content

Commit ca95fb4

Browse files
committed
fix: type assertion in cache-management test using unknown
1 parent d539897 commit ca95fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hub/src/lib/cache-management.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe("scanSnapshotDir", () => {
8787
const cachedFiles: CachedFileInfo[] = [];
8888
const blobStats = new Map<string, Stats>();
8989
vi.mocked(readdir).mockResolvedValueOnce([
90-
{ name: "file1", isDirectory: () => false } as Awaited<ReturnType<typeof readdir>>[0],
90+
{ name: "file1", isDirectory: () => false } as unknown as Awaited<ReturnType<typeof readdir>>[0],
9191
]);
9292

9393
vi.mocked(realpath).mockResolvedValueOnce("/fake/realpath");

0 commit comments

Comments
 (0)