zt-hock
v1.1.2
Published
A mocking server for HTTP requests, forked from Hock
Downloads
1
Readme
zt-hock
An HTTP mocking server forked from Hock, which itself is based on a project called Nock.
Why fork
We use hock for several projects, but lacked a couple of features and configurations options. The project looked like it was dead (no comments and merged PRs for more than half a year). As a result, we decided to fork the project, re-write it, and add our missing features.
Difference with hock
At a glance:
- Modern code base, written in ES6
- delay() API
- Object comparison for bodies tries to compare first using deep-equals, then falls back to stringify
- Option to turn off throwing errors for unprocessed requests in the assertion queue
- ... we await your feature requests!