Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

integration-testing nodejs

Last synced: 26 days 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

> [email protected] start /Users/angel/Work/nested-nock
> node index.js

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