https://github.com/joseolivares/angular-jest
This project shows how to implement Jest framework for Unit Testing instead of using Karma for Angular Apps
https://github.com/joseolivares/angular-jest
angular angular18 jest
Last synced: about 1 month ago
JSON representation
This project shows how to implement Jest framework for Unit Testing instead of using Karma for Angular Apps
- Host: GitHub
- URL: https://github.com/joseolivares/angular-jest
- Owner: joseOlivares
- Created: 2024-11-11T17:45:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-12T20:50:29.000Z (over 1 year ago)
- Last Synced: 2025-07-11T09:39:47.928Z (12 months ago)
- Topics: angular, angular18, jest
- Language: HTML
- Homepage:
- Size: 241 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/angular/angular-cli) version 18.2.2.
## Author info :ninja:
José Luis Olivares
If you appreciate my effort, please endorse my skills on Linkedin (https://www.linkedin.com/in/jolivaress/)
## :bulb: 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.