From d9b396cd7af714f19b7d74c26cda6fde68fdf337 Mon Sep 17 00:00:00 2001 From: zkldi Date: Thu, 20 May 2021 08:07:32 +0100 Subject: [PATCH] fix invalid typing in mock-fetch --- server/src/test-utils/mock-fetch.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/test-utils/mock-fetch.ts b/server/src/test-utils/mock-fetch.ts index 6afc34c86..1032c2e21 100644 --- a/server/src/test-utils/mock-fetch.ts +++ b/server/src/test-utils/mock-fetch.ts @@ -1,7 +1,8 @@ -import nodeFetch, { Response } from "node-fetch"; +import { Response } from "node-fetch"; +import { NodeFetch } from "../fetch"; export function MockFetch(data: Partial) { // We know! this is a mock function. // eslint-disable-next-line require-await - return ((async () => data) as unknown) as typeof nodeFetch; + return ((async () => data) as unknown) as NodeFetch; }