~/talk

Testing Is All About Principles

Talkat React Day Berlin 2019 · on Friday, 2019-12-06· [react, testing, developer-experience]
slides:none on file

Claim: testing succeeds when principles beat tool arguments. Shows a small Messenger‑like app, writes unit, integration and higher‑level tests with Enzyme and react‑testing‑library, mocks an API via dependency injection, and proves a test that breaks when Redux is removed reveals white‑box coupling. Warns that render without crashing tests and chasing 90% code coverage are vanity moves, adds Lighthouse in CI for performance signals, and demonstrates how tests behave during refactoring.

AI-written summary · about

  1. 0:00Start
  2. 3:08My goal today is to foster critical thinking and to explore testing principles
  3. 3:29First, who does benefit of writing tests?
  4. 5:08Code refactoring. We change how the code works. We do not change what it does
~/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.