~/talk

If the world is burning to the ground - keep calm and write a test for it

Talkat NG Poland 2019 · on Thursday, 2019-11-21· [testing, frontend-architecture]
slides:none on file

Demonstrates concrete fixes for common Angular test failures: resolving a template parse error with CUSTOM_ELEMENTS_SCHEMA rather than silencing errors with NO_ERRORS_SCHEMA, remembering to call fixture.detectChanges() after setting component inputs, and stubbing HTTP calls with HttpTestingController and .flush() while asserting request URLs and response headers. Walks through TestBed setup, component creation, expectation counts, and using a done callback to mark asynchronous tests complete, with live coding and exact mock payloads.

AI-written summary · about

  1. 0:00Introduction
  2. 3:36Happy birthday song
  3. 6:54Live coding demo
  4. 7:57Fixing template parse errors
  5. 10:58Testing card component
  6. 13:29Debugging failing tests
  7. 16:34Empty tests and HTTP mocking
  8. 19:22Mocking API responses
  9. 21:46Conditional test execution
  10. 22:50Summary
~/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.