Coding Session: TDD 101
summary
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
chapters (11)
- 0:00TDD welcome
- 1:07Three TDD practices
- 2:37Fast test infrastructure
- 3:46Step-by-step solution
- 6:04Print 1 to 100
- 7:54Refactor tests
- 9:44Replace with 'Fizz' for 3
- 12:57Handle 5 and conflicts
- 14:22Final summary
- 15:51Readable tests
- 16:36Browser check
related talks
01h 06mBeyond Test Driven Development
41mTesting that the code does what the code does
48mTDD - It's About More Than Just the Tests
29mTest-Driven Development with Jest
10mWrite Better Tests With TDD
43mTechnology mix: Test-Driven Development in action: live session
45mWriting Tests That Don't Suck: TDD in JavaScript
52mTDD for Testers workshop
