Skip to content

Latest commit

 

History

History
41 lines (17 loc) · 1002 Bytes

README.md

File metadata and controls

41 lines (17 loc) · 1002 Bytes

Angular with Jest

This project shows how to implement Jest framework for Unit Testing instead of using Karma for Angular Apps. This project was generated with Angular CLI version 18.2.2.

Author info 🥷

José Luis Olivares If you appreciate my effort, please endorse my skills on Linkedin (https://www.linkedin.com/in/jolivaress/)

💡 Read the step by step implementation on this Gist

https://gist.github.com/joseOlivares/8b243a0bc2282f73679dcc74053bd7f5

Running Jest unit tests

Run npm run test

Running Jest unit tests with coverage

Run npm run test:coverage

Running Jest unit tests on Watch Mode

Run npm run test:watch

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.