Skip to content
Angular Jest implementation and tests exemples
Branch: 05-Hero-App-Se…
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e
src
.editorconfig
.gitignore
README.md
angular.json
db.json
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

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 version 7.3.5. And replace Karma/Jasmine test framework by Jest

Checkout 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 testto 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.

You can’t perform that action at this time.