~/talk

Zoneless Testing

Talkat NG-BE 2024 · 2024-12-05..12-06· [testing, angular]
slides:none on file

Angular moves zoneless and that breaks Zone.js‑dependent testing: fakeAsync and waitForAsync stop working. Concrete alternatives: use ComponentFixture::whenStable() for promises, register Angular’s pending tasks API (developer preview in v19) to make setTimeouts observable, or rely on testing‑framework fake timers (Jasmine/ vitest/Jest PRs in flight) or run Cypress component tests. Demo uses Rx Resource, router testing harness and showed changes work but timeouts require app changes or timer fakes.

AI-written summary · about

  1. 0:00Zoneless testing intro
  2. 1:02Why zoneless matters now
  3. 2:24How zoneless changes detection
  4. 5:52Testing basics with zoneless
  5. 7:17Real-world test case setup
  6. 10:11Using fixtures effectively
  7. 13:44Testing disabled state changes
  8. 14:46Handling async delays
  9. 16:10End of fakeAsync/waitForAsync
  10. 17:13Pending tasks for async control
  11. 19:46Challenges with pending tasks
  12. 21:09Alternatives to pending tasks
  13. 22:56Future of async testing
  14. 23:59Cypress component testing
  15. 24:42Key takeaways
~/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.