From 982783c8cfc14c3c590975e4ef21a3d0725bc652 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Thu, 19 Oct 2023 19:54:05 +0200 Subject: [PATCH] fix(common): fix fetch mock in test Signed-off-by: Tilman Vatteroth --- .../api/common/api-request-builder/test-utils/expect-fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/common/api-request-builder/test-utils/expect-fetch.ts b/frontend/src/api/common/api-request-builder/test-utils/expect-fetch.ts index b671c0a88..b9f2cad7c 100644 --- a/frontend/src/api/common/api-request-builder/test-utils/expect-fetch.ts +++ b/frontend/src/api/common/api-request-builder/test-utils/expect-fetch.ts @@ -35,7 +35,7 @@ export const expectFetch = ( json: jest.fn(() => (responseBody ? Promise.resolve(responseBody) : Promise.reject())) }) ) - }) + }) as typeof global.fetch } const mapCodeToText = (code: number): string => { switch (code) {