unable to mock the instance function of class (function from new instance of class) in nodejs using jest

前端 未结 0 1151
傲寒
傲寒 2020-12-02 03:08

In component.js, Need to mock the line:
const accessValue = await objValueClass.getValue();

While running component.test.js, in console.log accessValue is comin

相关标签:
回答
  • 消灭零回复
提交回复
热议问题