chore: Fix types in tests 31/N.

This commit is contained in:
cpojer
2026-02-17 14:33:26 +09:00
parent f2f17bafbc
commit 116f5afea3
12 changed files with 185 additions and 85 deletions

View File

@@ -16,7 +16,7 @@ function redirectResponse(location: string): Response {
status: 302,
headers: makeHeaders({ location }),
body: { cancel: vi.fn() },
} as Response;
} as unknown as Response;
}
function textResponse(body: string): Response {
@@ -25,7 +25,7 @@ function textResponse(body: string): Response {
status: 200,
headers: makeHeaders({ "content-type": "text/plain" }),
text: async () => body,
} as Response;
} as unknown as Response;
}
function setMockFetch(impl?: (...args: unknown[]) => unknown) {