~/talk

Testing against time in JavaScript applications

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

Concrete patterns for testing time-dependent JavaScript: use ember-test-helpers and QUnit with async/await so visit/render helpers wait until Ember’s internal settle checks finish; replace real HTTP by owner.register mock service that returns resolved promises instead of network calls; assert UI after click only after the returned promise settles; freeze or travel dates with a time library (e.g. timecop) to avoid weekday-sensitive flakiness. Examples include Ember data model loading, simulated fetch responses, and avoiding fixed timeouts.

AI-written summary · about

  1. 0:00Start
  2. 0:20Testing against time in JavaScript Applications
  3. 3:18Testing in Ember Apps 101
  4. 5:40Making Tests Wait Async Ops
  5. 13:55Writing your own waiting helper
  6. 20:55Timing in your tests matters
~/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.