diff options
Diffstat (limited to 'src/client/App.test.tsx')
| -rw-r--r-- | src/client/App.test.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/client/App.test.tsx b/src/client/App.test.tsx index bdc281a..c11eb88 100644 --- a/src/client/App.test.tsx +++ b/src/client/App.test.tsx @@ -37,9 +37,15 @@ vi.mock("./api/client", () => ({ })); // Helper to create mock responses compatible with Hono's ClientResponse -// biome-ignore lint/suspicious/noExplicitAny: Test helper needs flexible typing -function mockResponse(data: { ok: boolean; status?: number; json: () => Promise<any> }) { - return data as unknown as Awaited<ReturnType<typeof apiClient.rpc.api.decks.$get>>; +function mockResponse(data: { + ok: boolean; + status?: number; + // biome-ignore lint/suspicious/noExplicitAny: Test helper needs flexible typing + json: () => Promise<any>; +}) { + return data as unknown as Awaited< + ReturnType<typeof apiClient.rpc.api.decks.$get> + >; } function renderWithRouter(path: string) { |
