~/talk

Test Driving React Applications

slides:none on file

Shows step‑by‑step TDD for React using Create React App, Jest and React Testing Library: starts with a canary test to verify environment, uses jest.mock to stub child components, demonstrates render + screen.get / query / find (get/query/find) and fireEvent to simulate typing and clicking, builds a small Greet component with useState, drives code until tests pass, and explains measuring coverage (aiming for high coverage, rule of three) and mocking async services. The demo compiles and tests green.

AI-written summary · about

  1. 0:00Introduction to TDD
  2. 7:24Benefits of test driven development
  3. 14:47Setting up the environment
  4. 27:34Writing the first test
  5. 33:14Understanding code coverage
  6. 44:34Developing test writing skills
  7. 48:27Testing user interactions
~/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.