Choose the right package every time
Openbase helps you choose packages with reviews, metrics & categories.
Sign up with GitHub
By signing up, you agree to our
terms of service
npm i nock
Find additional tutorials on Google
Mocking HTTP requests with Nock
This is a ‘how to’ article on using Nock to mock HTTP requests during tests. When dealing with code that depends on external services maintaining test coverage and writing reliable tests can be…
API mock testing with Nock
Learn how to use Nock to mock HTTP requests from an API so you can test endpoints without actually calling them.
Mocking External HTTP Requests in Node Tests with Nock
Avoid the challenges of testing Node.js code that depends on external services and APIs by using Nock to test HTTP requests in isolation.
nock examples - CodeSandbox
Learn how to use nock by viewing and forking nock example apps on CodeSandbox
Testing HTTP Requests in Node.js Using Nock | DigitalOcean
In this article you will learn how to easily test out your HTTP requests with a library called Nock.
Mocking Dependencies in Integration Tests with Nock - Test Automation
Integration tests with nock provides significant gains in speed and reliability by focusing less on actual connectivity and more on adhering to a contract.
5-Minute Intro to Nock for Mocking APIs
In this episode, I will show you how you can build an API Client with automated unit tests by using axios (https://github.com/axios/axios) and nock (https://...