~/talk

Advancing Unit Tests

Talkat NGConf 2018 · on Thursday, 2018-04-19· [testing, angular]
slides:none on file

Tests for OnPush change detection show failing behavior until the test harness calls fixture.detectChanges and reveals change detection runs only once in the initial setup. The team uses TestBed.overrideComponent to swap OnPush for Default during early experiments, then adopts a CMA-style test structure that triggers change detection explicitly and asserts the template renders the expected id. The workaround is temporary; the restructured tests reliably pass.

AI-written summary · about

  1. 0:00Start
  2. 0:41Courtney Christian
  3. 1:54What is it?
  4. 2:39Why Don't More People Do It?
  5. 3:17How it's done
  6. 6:59Example
~/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.