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; }