EBIA

Month: April 2017

Angular Testing Revisited – V4+

Introduction

Setup

ng new ng-testing --routing
npm start
ng test
ng test --code-coverage

Angular Testing 4+ Keywords

  • Isolated, Shared, Integration, Unit, E2E End to End Tests,
  • Mocks, Stubs, Spies
  • Sync, Async
  • Jasmine, suites, specs, expectations, matchers, tricks (.toEqual, ¬†.toBe,..), beforeEach, afterEach, beforeAll, afterAll, refactoring repetitive code into the setup,
  • Angular, Components, Services, Http, Mock-Backend, Directives, Pipes, Routes, Observables,¬†TestBed, fixtures, async and fakeAsync/tick, jasmine.done

Copyright © 2020 EBIA

Theme by Anders NorenUp ↑