【发布时间】:2019-09-21 17:30:55
【问题描述】:
我应该可以在运行测试时添加-u 参数,但我不知道为什么它不起作用:
npm run test ComponentName.spec.js -u
npm run test ComponentName.spec.js --updateSnapshot
但它不起作用。我的 package.json:
"scripts": {
"test": "vue-cli-service test:unit",
我知道我可以只删除快照文件,但我想弄清楚为什么该命令不起作用。
【问题讨论】:
标签: javascript vue.js jestjs snapshot vue-cli