【发布时间】:2019-11-19 03:28:12
【问题描述】:
我想跳过在created() 挂钩中调用的所有方法。有没有办法做到这一点?
所以不是这个
created() {
this.getAllocations();
this.getModels();
this.getTeams();
this.getCustodians();
this.getDefaultFeeStructure();
}
我想要这个
created() { }
值得注意的是,我实际上无法更改组件本身,但出于测试目的,需要这样做。
【问题讨论】:
标签: vue.js jestjs vue-test-utils