Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ineat/angular-jest-tutorial
Angular Jest implementation and tests exemples
https://github.com/ineat/angular-jest-tutorial
Last synced: about 2 months ago
JSON representation
Angular Jest implementation and tests exemples
- Host: GitHub
- URL: https://github.com/ineat/angular-jest-tutorial
- Owner: ineat
- Created: 2019-04-05T08:12:59.000Z (over 5 years ago)
- Default Branch: 05-Hero-App-Service-Tested
- Last Pushed: 2021-09-24T07:12:20.000Z (over 3 years ago)
- Last Synced: 2024-04-23T20:23:12.273Z (8 months ago)
- Language: TypeScript
- Size: 713 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AngularHeroTeam
This project is attached to article related to How to change Angular Karma/Jasmine test framework by Jest and how to perform unit test using Jest> https://blog.ineat-conseil.fr/2019/04/angular-remplacer-karma-jasmine-par-jest
## 01-Init-switch-Karma-Jasmine-to-Jest branch
Initial project generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.5. And replace Karma/Jasmine test framework by JestCheckout branch, `run npm install` or `yarn install`
Run `ng serve` to show the Angular Hello World App throught your favorite brwser at `http://localhost:4200/`
Run `ng test`to execute default Angular Hello World App unit test using Jest## 02-Hero-App-Untested
Small Angular Application to create Team of Hero and Team of Wicked using clean architecture but not tested## 03-Hero-App-FullyTested
Same previous application but fully tested with Jest## 04-Hero-App-Service
Same app with untested api service called. The api was mocked using json-server and running using concurrently.
Use `npm run start` or `yarn start` to start concurrently json-server and Web Server (ng serve).## 05-Hero-App-Service-Tested
Same app with tested service.