Ecosyste.ms: Awesome
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: 26 days ago
JSON representation
Nock Demo - How to do integration testing
- Host: GitHub
- URL: https://github.com/rhzs/nock-demo
- Owner: rhzs
- Created: 2018-11-09T02:01:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T02:03:59.000Z (about 6 years ago)
- Last Synced: 2024-11-07T04:41:06.003Z (3 months ago)
- Topics: integration-testing, nodejs
- Language: JavaScript
- Size: 1.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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' ] }
```