Skip to content
ignitae
Academy
TDD with JavaScript
Build a shopping cart one red-green-refactor step at a time.
Syllabus
The TDD loop
Red, green, refactor
Cart TDD 1: add and total (exercise)
Growing the design
Letting the tests grow the design
Cart TDD 2: quantities and items (exercise)
Cart TDD 3: remove and change quantity (exercise)
Rules and edge cases
Business rules live in the edge cases
Cart TDD 4: discounts (exercise)
Cart TDD 5: shipping (exercise)