Skip to content

Latest commit

Β 

History

History
39 lines (24 loc) Β· 1.51 KB

File metadata and controls

39 lines (24 loc) Β· 1.51 KB

Angular Counter Component

πŸ“– This example is part of the free online book: Testing Angular – A Guide to Robust Angular Applications . πŸ“–

Overview

This repository builds a simple counter with Angular in three ways:

Related projects

Development server

  • Clone the repository, change into the angular-workshop directory
  • npm install
  • npm install -g @angular/cli
  • ng serve
  • Navigate to http://localhost:4200/

Running unit & integration tests

Run ng test to execute the unit & integration tests with Karma and Jasmine.

Running end-to-end tests with Cypress

Run ng run angular-workshop:cypress-run to execute the Cypress end-to-end tests. (This starts the development server automatically.)

Run ng run angular-workshop:cypress-open to start the interactive Cypress test runner.

Deployment

Run npm run deploy to the deploy the code to [https://9elements.github.io/angular-workshop/].