An example project that uses Jest projects to run unit, integration, and E2E tests separately.
This project is from one of my blog articles.
Install dependencies
npm i
npm test
- Runs all tests (unit, integration and E2E)npm run test:unit
- Runs unit tests onlynpm run test:integration
- Runs integration tests onlynpm run test:e2e
- Runs E2E tests only