Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.1 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.1 KB

Build Status

Combines the power of

  • HTTP mocking with nock
  • replaying recorded API interactions with nock-record (which wraps nock.back)
  • using node-fetch so front-end and back-end dev's can use same library

How does it work?

This repo demonstrates simplifying and speeding up testing using the above techniques, whilst replacing the standard node http library usage with node-fetch.

Developers who need to interact with external API's write their own code using node-fetch, and then test their own code using tests written with the support of nock/nock-record