Setup the repo
npm init -y
Run below command to instal supertest mocha chai babel
npm i --save-dev supertest mocha chai @babel/cli @babel/core @babel/node @babel/register @babel/preset-env
How to use chai - expect
https://www.chaijs.com/api/bdd/#method_empty
To run the tests
- npm install
- npm test
- (Actual command: npx mocha --timeout 5000 --reporter mochawesome)