From c0ad22e3a7f2cdb84e68d38fd538083d345c07c5 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Tue, 22 Sep 2026 13:10:44 -0400 Subject: [PATCH] test(web): cast fetch mock call args for tsc --- src/api/client.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/client.test.ts b/src/api/client.test.ts index 962a388..f35b812 100644 --- a/src/api/client.test.ts +++ b/src/api/client.test.ts @@ -27,7 +27,7 @@ describe("unused SPA API client", () => { "/api/health", expect.objectContaining({ credentials: "include" }), ); - const init = fetchMock.mock.calls[0]?.[1] as unknown as RequestInit; + const init = (fetchMock.mock.calls[0] as unknown as [string, RequestInit])[1]; expect(init.credentials).toBe("include"); const headers = new Headers(init.headers); expect(headers.get("Authorization")).toBeNull();