Skip to content

QualityWithMillan/api-mocking-using-nock-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-mocking-using-nock-nodejs

This project (api-mocking-using-nock-nodejs) is a sample JavaScript API test project using nock to modify responses.

Table of Contents

Installation

To run this project, you need to have Node.js and npm installed on your machine. Clone the repository and navigate to the project directory in your terminal.

# Clone the repository
git clone https://github.com/QualityWithMillan/api-mocking-using-nock-nodejs.git

# Navigate to the project directory
cd api-mocking-using-nock-nodejs

# Install dependencies
npm install

Usage

After installing the dependencies, you can run the project using the following command:

npm run test

This command will execute the test.js file, which contains the JavaScript API test code using nock to modify responses.

Follow us for more interesting utils on our blog https://qualitywithmillan

About

How to mocking APIs using nock in Nodejs JavaScript projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published