单测只能识别js 文件类型,但是你引入了svg 类型,所以报错了,解决方法:在.jest.js 配置文件 moduleNameMapper 中添加 moduleNameMapper: { '^@/(.
確定! 回上一頁