This project (api-mocking-using-nock-nodejs
) is a sample JavaScript API test project using nock
to modify responses.
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
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