Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

zeroturnaround/zt-hock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zt-hock Build Status NPM build Coverage Status

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!

WIP: Readme