Skip to content

playing with mocking node http with nock, to test node-fetch api runner

Notifications You must be signed in to change notification settings

leriksen/nock-fetch

Repository files navigation

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

About

playing with mocking node http with nock, to test node-fetch api runner

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published