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
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