Test your express server using jest and supertest
First of all, it's really easy
Step1: Install jest and supertest
npm install jest supertest
Step2: Add this to your package.json inside scripts
"test": "jest "
Step3: Create a folder named test and create file server.test.js
const request = require('...
gurugen.in1 min read