1.通过vue-cli新创建的项目,执行npm run unit,报以下错误:
|
解决方法:在jest.config.js配置文件里面添加verbose和testURL字段
module.exports = {
verbose: true,
testURL: 'http://localhost/',
......
}
版权声明:本文为xiaoxiaoxiao_lu原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
1.通过vue-cli新创建的项目,执行npm run unit,报以下错误:
|
解决方法:在jest.config.js配置文件里面添加verbose和testURL字段
module.exports = {
verbose: true,
testURL: 'http://localhost/',
......
}