~/talk

Jest Testing

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

Claims that Jest runs super fast, prioritizes failed tests, and sandboxs globals; shows using jest-preset-angular and ts-jest with jsdom so zero-or-minimal config. Demonstrates snapshot testing (files in __snapshots__), code-coverage out of the box, and testing reducers, actions, components and effects with rxjs-marbles. Gives a concrete workflow: store snapshots in Git, update or review diffs on refactor, and reports refactoring 200 tests in hours instead of weeks.

AI-written summary · about

  1. 0:00The case for testing
  2. 1:31Introduction to Jest
  3. 3:26Installation and setup
  4. 5:28Advanced CLI features
  5. 8:18Testing NgRx actions
  6. 9:39Snapshot testing basics
  7. 12:32Testing NgRx reducers
  8. 13:49Testing NgRx effects
  9. 17:12Testing components
  10. 18:31Conclusion and Q&A
~/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.