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

https://github.com/arrighidante/angulartestsapp


https://github.com/arrighidante/angulartestsapp

angular jest unit-testing

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# My Test App with apps :rocket:

This is a test project that contains several mini Angular applications. The main purpose of this project is to perform tests using Jest.

![Angular Logo](https://angular.io/assets/images/logos/angular/angular.png)

This project was created following [this guide by Fernando Herrera](https://www.youtube.com/playlist?list=PLCKuOXG0bPi205CKoCh2bgcv9oXS6sO3a).

Feel free to use it if you want to practice with Jest. Remember to remove the test folder and start with the testing! Enjoy it!
## Versions :label:

- Angular: 17.0.0
- Jest: 27.0.0
- jest-environment-jsdom: 29.7.0
- jest-preset-angular: 14.0.3

## Testing :white_check_mark:

To run the tests, use the following command:

```bash
npm run test
```
You can follow these steps to select a specific test that match with the entered search term:
1. Run the test
2. Press 'w' key to open the options panel
3. Press 'p' to filter by a filename
4. Press 'enter' to confirm
5. Only the tests that match will be excecuted

## Run :running:

To run the project, use the following command:

```bash
ng serve -o
```

## Contributing :handshake:

Contributions and suggestions are welcome. Please open an issue or a pull request for suggestions or improvements.