~/talk

Testing Angular Components Fundamentals

Talkat Assert(js) 2018 · on Thursday, 2018-02-22· [testing, angular]
slides:none on file

Covers specific setup and code: uses Jasmine, Karma and Angular CLI, and TypeScript; recommends three test types—isolated, shallow and integration—and gives concrete criteria for each; details TestBed usage with configureTestModule, createComponent and compileComponents, explains Fixture.detectChanges, async wrappers, fakeAsync and tick, and shows when to mock HTTP services; prefers unit tests where possible and prescribes teardown by nulling globals so tests reliably pass.

AI-written summary · about

  1. 0:00Intro
  2. 0:34What you are going to learn?
  3. 1:15Tools of the Trade
  4. 1:45Jasmine
  5. 2:47Three types of component tests
  6. 3:31Shallow Tests
  7. 3:54Integration Tests
  8. 4:43import statements
  9. 5:02Test Bed
  10. 6:06ComponentFixture
  11. 7:17describe block
  12. 7:52Mocking services
  13. 8:39beforeEach statements
  14. 9:04Writing your tests
  15. 9:37fakeAsync and tick
  16. 10:09Destroy references
  17. 10:39Additional resources
  18. 11:04Coupon codes
  19. 11:37Contact me
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.