~/talk

Next Level Jest Testing

Talkat Vue.js Amsterdam 2019 · 2019-02-14..02-15· [testing]
slides:none on file

Concrete techniques for testing Vue apps with Jest and Vue Test Utils are shown: use jest snapshots with property matchers and faker for sane randomness, test Vuex by calling mutations and resetting state or using state-as-function, fix cached singletons with jest.resetModules, mock Axios via Jest automock or __mocks__ for controlled responses, use fake timers and flush-promises for async, factor factories and createFactory for reusable mounts, use snapshot-diff and vue snap serializer, and ship a jest-acceptance tester that reduces test rewrites and works end to end.

AI-written summary · about

  1. 0:00Start
  2. 1:37NEXT LEVEL JEST TESTING
  3. 2:08Hi, I'm Roman!
  4. 2:43Jumped on Vue with 0.11
  5. 6:30Testing a VUEX Store
  6. 15:01Custom Mocks!
  7. 16:35Components
  8. 19:13Duplication?
  9. 19:26Factories!
  10. 23:43Unit Tests Next Level
  11. 24:00Acceptance Tests
~/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.