$npm init -y
$npm install -D jest supertest
$npm install -S express
Edit file package.json
"scripts": {
"test": "jest --coverage"
}
Run test
$npm test
- Generate by AI with Sample prompts
- Create file
./app.js
with express library
Run test again !!
$npm test
$node server.js
List of urls
- Add health check GET /healthz
- Get user data from postgresql database