v2.2.0
- Refactor that introduces a JS Programmatic API:
add(opts)start(opts)stop()
- Added documentation
In order to use it simply:
const snapstub = require('snapstub');
// starts the mock server
snapstub.start({
verbose: true,
mockFolderName: '__mocks__',
port: 8080
});