0 Forks
1 Stars
1 Watchers

cjs-mock

'Immutable' NodeJS module mocking for CJS (CommonJS) modules for unit testing purposes. Similar to proxyquire, but much simpler and more defensive.

How to download and setup cjs-mock

Open terminal and run command
git clone https://github.com/mhweiner/cjs-mock.git
git clone is used to create a copy or clone of cjs-mock repositories. You pass git clone a repository URL.
it supports a few different network protocols and corresponding URL formats.

Also you may download zip file with cjs-mock https://github.com/mhweiner/cjs-mock/archive/master.zip

Or simply clone cjs-mock with SSH
[email protected]:mhweiner/cjs-mock.git

If you have some problems with cjs-mock

You may open issue on cjs-mock support forum (system) here: https://github.com/mhweiner/cjs-mock/issues