Skip to content

Releases: ruyadorno/snapstub

v2.2.0

05 Jul 20:01
Compare
Choose a tag to compare
  • 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

28 Apr 22:15
Compare
Choose a tag to compare
  • Added routes information when launching the app, many thanks @safajirafa 🎉
  • Fixed lint task

v2.0.0

27 Mar 20:11
Compare
Choose a tag to compare
  • Added a --verbose flag for the start command
  • Original behavior was changed, now snapstub is silent by default

v1.5.0

04 Feb 22:29
Compare
Choose a tag to compare
  • Added support to use files along with --data option when adding new routes

v1.4.1

02 Feb 05:07
Compare
Choose a tag to compare
  • Added missing docs for snapstub add --data option

v1.4.0

02 Feb 04:30
Compare
Choose a tag to compare
  • 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

01 Feb 04:04
Compare
Choose a tag to compare
  • Added support to custom headers on snapstub add command

v1.2.0

01 Feb 03:17
Compare
Choose a tag to compare
  • 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

30 Jan 20:42
Compare
Choose a tag to compare
  • 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

30 Jan 20:36
Compare
Choose a tag to compare
  • Fixed issue where calls to different http methods would always get result from a /GET