An open API service indexing awesome lists of open source software.

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

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.