node-mock
Mock existing Node.js modules.
Getting Started
Installation
npm install node-mock --save-dev
Integration
var mock = ;
API
mock.require(id, [dirname], exports)
var ts = mock; // ts === require('typesystem') var zoe = mock; // zoe === require('./zoe')
Running Tests
To run the test suite first install the development dependencies:
npm install
then run the tests:
npm test