一段时间以来,我一直试图模拟fetchLiveMatches导入的函数,但没有成功。我一直在浏览一些想法,但我想我已经用完了,所以我需要一些帮助。你知道我做错了什么吗?/live";import * as liveService from "../utils/testingHelper";
jest.mock("../
我有一个来自JS类的实例'client‘,如下所示: let response = await fetchError("Error fetching random user"); return (await response.json()).results[0];}
test('fetches image from random