我遇到了错误,需要您的帮助。感谢您收看此问题。
我的情况:我正在为我的项目配置Drone CI工具,运行在drone.yml上的单元测试]时得到了这个。
Validation Error: Module <rootDir>/node_modules/vue-jest in the transform option was not found. Configuration Documentation: https://jestjs.io/docs/configuration.html
这里是我的
jest.conf.js
transform: { "^.+\\.js$": "babel-jest", ".*\\.vue$": "<rootDir>/node_modules/vue-jest" },
我尝试过的:
<rootDir>/node_modules/
。但是我又遇到了另一个错误Module vue-jest in the transform option was not found.
。所以我认为这不是正确的解决方案我遇到了错误,需要您的帮助。感谢您收看这个问题。我的情况:我正在为我的项目配置Drone CI工具,当我在drone.yml上运行单元测试时得到了这个。验证错误:...
npm install --save-dev vue-jest