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/issuesSimilar to cjs-mock repositories
Here you may see cjs-mock alternatives and analogs
webpack parcel madge steal node-dependency-tree node-precinct browserify minipack bootstrap.native pax webpack-common-shake bonsai browserify-rails detective common-shake vue-drawer-layout babel-plugin-global-require tarp.require titaniumifier neuron.js common-shakeify node-blockly Typescript-restful-starter porter To.ImageCache is-windows nedo module-concat npm-es-modules WSHModule