然后,我按照本教程对组件进行单元测试。单元测试在组件上的import语句中失败,并返回此错误:
C:\Users\SHINIGAMI-ALFSABAH\Documents\Workspace\Dev\Vue\star-rating<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import Icon from '.._transformAndBu
一段时间以来,我一直试图模拟fetchLiveMatches导入的函数,但没有成功。我一直在浏览一些想法,但我想我已经用完了,所以我需要一些帮助。你知道我做错了什么吗?live.test.js
jest.mock("..test("calls fetchLiveMatches function to fetch from exter