This is a framework with Supertest and Jest for testing Restful services.
There are four files in the Specs folder and each file uses different approaches for writing a test using Supertest and Jest.
git clone https://github.com/prasadmudedla/supertest-jest.git
cd supertest-jest
npm install --save-dev
npm run test
- Supertest - The library used for HTTP calls
- Jest - Runner and Assertions
- REQ | RES - Sample Test Service
- Hat tip to Ben Howdle