node-rewire

Easy monkey-patching for node.js unit tests
  https://github.com/jhnns/rewire
  0
  no reviews



Rewire adds a special setter and getter to modules making it possible to modify their behaviour for better unit testing. It provides functionality for

+ inject mocks for other modules or globals like process + inspect private variables + override variables within the module.

Node.js is an event-based server-side JavaScript engine.