Releases: ruyadorno/snapstub
Releases · ruyadorno/snapstub
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
});
v2.1.0
- Added routes information when launching the app, many thanks @safajirafa 🎉
- Fixed lint task
v2.0.0
- Added a
--verbose
flag for the start command
- Original behavior was changed, now snapstub is silent by default
v1.5.0
- Added support to use files along with
--data
option when adding new routes
v1.4.1
- Added missing docs for
snapstub add --data
option
v1.4.0
- Added option to send data within a request, e.g:
snapstub add --data foo=bar
- Accepts either json or plain strings
- Headers will be set accordingly
- User-defined headers will take precedence
v1.3.0
- Added support to custom headers on
snapstub add
command
v1.2.0
- Added
help
and version
commands
- Fixed issue with
snapstub start
not using path set by env var SNAPSTUB_FOLDER_NAME
- Refactored commands into their own files
v1.1.0
- Added
jsonlint
to auto-beautify json files before storing them to __mocks__
☝️ should make life easier when having to deal with diffs between stored files
v1.0.1
- Fixed issue where calls to different http methods would always get result from a /GET