Skip to content

Angular Testing Repo - A complete guide to Angular Unit Testing and E2E Testing

License

Notifications You must be signed in to change notification settings

arashariadev/angular-testing

Repository files navigation

Angular Testing

This repository is updated to Angular v12, and there is a package-lock.json file available, for avoiding semantic versioning installation issues.

Installing the Angular CLI

With the following command the angular-cli will be installed globally in your machine:

npm install -g @angular/cli 

How To run this app

Its also possible to install the modules using the following command:

npm install 

NPM 5 or above has the big advantage that if you use it you will be installing the exact same dependencies than I installed in my machine, so you wont run into issues caused by semantic versioning updates.

This should take a couple of minutes. If there are issues, please post the complete error message in the Questions section of the course.

To Run the Development Backend Server

We can start the sample application backend with the following command:

npm run server

This is a small Node REST API server.

To run the Development UI Server

To run the frontend part of our code, we will use the Angular CLI:

npm start

The application is visible at port 4200: http://localhost:4200

To run test without hot reloading

ng test --no-watch

Other sources

About

Angular Testing Repo - A complete guide to Angular Unit Testing and E2E Testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published