~/talk

Coding Session: TDD 101

TalkinRussianat JavaScript fwdays'20 autumn online · 2020-09-11..09-26· [testing, career-development]
links:none on file
slides:none on file

A live coding session demonstrates TDD using Jest in watch mode to implement a DOM-manipulating function that generates numbers 1–100 and replaces multiples of 3 with “физ”, multiples of 5 with “баз”, and multiples of both with “из баз”. The workflow shows step-by-step minimal implementations to satisfy each test, followed by refactoring of tests and code, with fast short test–code cycles and explicit examples of conflicting requirements.

AI-written summary · about

  1. 0:00TDD welcome
  2. 1:07Three TDD practices
  3. 2:37Fast test infrastructure
  4. 3:46Step-by-step solution
  5. 6:04Print 1 to 100
  6. 7:54Refactor tests
  7. 9:44Replace with 'Fizz' for 3
  8. 12:57Handle 5 and conflicts
  9. 14:22Final summary
  10. 15:51Readable tests
  11. 16:36Browser check
~/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.