CrabScout. The best software around.
Search

Nock

Replace Node.js HTTP requests with predictable local responses during tests.

nock · Code and testing

GitHub projectOpen source Open on GitHub

How to try it

In a Node.js project, install [email protected]. Mock a fictional inventory endpoint and read the response from a local request.

What we tested

15.0.6. Mock a fictional inventory endpoint and read the response from a local request. Matched exactly the fake stock request and returned its configured value seven.

Reviews

Rate this repo

More to explore

  • GleamWrite typed code for the Erlang virtual machine or JavaScript.GitHub projectOpen source
  • PixiSet up reproducible software environments for projects.GitHub projectOpen source
  • LycheeCheck that document links point to reachable paths.GitHub projectOpen source

Share

What the labels mean

Save to your library