阅读背景:

[Unit Testing] Mock a Node module's dependencies using Proxyquire

来源:互联网 

Sometimes when writing a unit test, you know that the module you're testing imports a module that you would like to observe, or at the very least mock to prevent side effects like network activity or file system operations.Sometimes when writing a unit test, you know th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: