~/talk

Running and debugging Jest tests in WebStorm

Talkat jsPoland 2018 · on Friday, 2018-11-16· [testing, developer-experience]
slides:none on file

WebStorm runs and debugs Jest tests end to end: create a Jest run config, enable watch mode auto-runs tests, set a breakpoint and breakpoint and step into divide to inspect a type mismatch (string vs number) and fix it, view test-run UI and rerun only failed tests, generate coverage 83% → 100% by adding a missing assertion, and run React snapshot tests (with Enzyme) that show diffed snapshots which can be updated and committed.

AI-written summary · about

  1. 0:00Start
  2. 0:31Testing with Jest
  3. 2:37Structure View
  4. 5:41Code Coverage Reports
  5. 7:03Snapshot Testing
  6. 7:30Snap Files
~/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.