An open API service indexing awesome lists of open source software.

https://github.com/rhzs/nock-demo

Nock Demo - How to do integration testing
https://github.com/rhzs/nock-demo

integration-testing nodejs

Last synced: about 1 month ago
JSON representation

Nock Demo - How to do integration testing

Awesome Lists containing this project

README

          

## Nock Demo

This is the demo for how to use "Nock" to help integration testing.

### How to run

1. Install dependencies, type `npm i`
2. Run `npm start`.

You will see the following results:

```shell
➜ npm start

> nested-nock-demo@1.0.0 start /Users/angel/Work/nested-nock
> node index.js

{ status: 'up' }
{ meat: [ 'beef', 'chicken' ] }
```