mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 17:54:58 +00:00
test: fix fetch mock typing casts
This commit is contained in:
@@ -61,7 +61,9 @@ describe("sendMessageSlack file upload with user IDs", () => {
|
||||
const originalFetch = globalThis.fetch;
|
||||
|
||||
beforeEach(() => {
|
||||
globalThis.fetch = vi.fn(async () => new Response("ok", { status: 200 })) as typeof fetch;
|
||||
globalThis.fetch = vi.fn(
|
||||
async () => new Response("ok", { status: 200 }),
|
||||
) as unknown as typeof fetch;
|
||||
fetchWithSsrFGuard.mockClear();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user