Skip to content

AlbertoBasalo/angular-testing

Repository files navigation

Angular Testing

A sample project for Angular workshop demos

Repository

  • 🚚 Install dependencies npm i

  • 🔬 Execute npm test

  • 🚀 Execute npm run api and npm start to run the app.

  • 📕 Read the docs folder content for more info.

Unit and Integration testing with only Jasmine alone

  • Base Store (Unit)
  • Api Store (Integration)

Jasmine Spy and test doubles

  • TimeSpan Pipe (Spy calls to DoC)
  • Options Service (Spy calls to DoC)

Test Bed: imports and providers

  • Utils Service (inject a mock)
  • Api Service (HttpClientTestingModule)
  • Home Service (integrated -> imports vs isolated -> providers)

Component testing

  • Agencies Component
  • Bookings Component
  • Options List (inside / outside)
  • Home Component (dependencies... )

Component interaction testing

  • Trips Form (fill form)

End to End testing


🧑🏼‍💻 By Alberto Basalo

twitter albertobasalo

git albertobasalo

About

🅰️ Angular 🧪 Testing

Topics

Resources

Stars

Watchers

Forks

Contributors