~/talk

Test-Driven Development with Jest

Talkat JavaScript Conference Armenia 2018 · on Saturday, 2018-11-03· [testing, javascript]
links:none on file
slides:none on file

Explains doing tests before code using the red green refactor cycle, shows Jest + Enzyme examples: implements a bubble sort, adds descending-order and default-descending tests, swaps to lodash on refactor, and mounts vs shallow-renders React components; demonstrates snapshot workflow and pitfalls with snapshot testing (big diffs encourage mindless updates). Claims unit tests catch 60 to 70 percent of errors and pairs TDD with pair programming; examples compile and tests run.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46TDD philosophy
  3. 1:21Red cycle
  4. 1:58Uncle Bob
  5. 2:56Benefits of TDD
  6. 3:25Full Unit Test Coverage
  7. 4:04Key Misconceptions
  8. 4:41Test Coverage
  9. 5:55Extreme Programming
  10. 6:09Pair Programming
  11. 6:54React UI
  12. 8:56Enzyme
  13. 9:33Render
  14. 18:17TestJs
  15. 18:49Snapshot Testing
  16. 19:28Snapshot Testing Benefits
  17. 21:00Snapshot Test
  18. 22:35Snapshot Test Example
  19. 24:24Key Benefits
  20. 26:20Is TDD used outside pair programming
~/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.