List of packages
- express
- jest
- jest-junit
- supertest
$npm install
$npm start
Access to api http://localhost:3000
2. API Testing with Jest
$npm test
3. Deploy to target server with PM2
$pm2 start src/index.js
$pm2 restart all
4. API testing with Postman and Newman command
$cd postman
$newman run node-api.postman_collection.json
// Report
$newman run day01.postman_collection.json -r cli,junit