Stub'require'使用'testdouble'抛出错误

时间:2018-02-03 05:49:32

标签: node.js npm test-double

我想将'require'调用存根到模块以抛出错误。有没有办法使用'testdouble'或'proxyrequire'来做到这一点?

0 个答案:

没有答案
相关问题