node-proxyquire

mocking tool to stub dependencies in Node.js
  https://github.com/thlorenz/proxyquire
  0
  no reviews



Proxyquire proxies nodejs's require in order to make overriding dependencies during testing easy while staying totally unobtrusive.

* No changes to your code are necessary. * Non overridden methods of a module behave like the original. * Mocking framework agnostic, if it can stub a function then it works with proxyquire. * "use strict" compliant.