This project is a simple express app for demonstrating testing and code coverage. Jest and Supertest are used for testing. Jest is also used for mocking functions and measuring code coverage. Note that this app only focuses on server-side JavaScript testing.
- Clone the repo
- Install dependencies with
npm install
- Run server with
npm start
and go here: http://localhost:3000
- Run unit and integration tests:
npm test
- Run end-to-end tests:
npm run test:e2e