SyntaxError:无法在模块外使用导入语句This usually means that youIf you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper
我想在后端实现一些jest测试,所以我试图通过tsconfig.json通过moduleNameMapper of jest.config.js映射在jest.config.js中配置的路径,但是当我运行测试时,我发现文件仍然没有导入,并且在第8行⬇上显示了这个错误。请帮助我正确地描绘我的道路,我将非常感谢任何帮助。/** @type