~/talk

From RSpec to Jest: JavaScript testing for Rails devs

Talkat RailsConf 2024 · 2024-05-07..05-09· [javascript, testing]
slides:none on file

A practical path from RSpec habits into JavaScript testing, focusing on Jest and concrete techniques: setting test data for front-end code, mock HTTP requests and asserting DOM state with selector-based checks. Covers common gotchas around async waits and test isolation, compares how RSpec patterns map to Jest assertions and mocks, and supplies actionable setup steps and tips so Rails codebases get JavaScript tests that actually run and catch regressions.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 10:00Why switch from RSpec
  3. 20:00Key differences in Jest
  4. 30:00Next steps and resources
~/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.