Source code for TDD blog post

Demonstrates the source code and tests at varous stages of the TDD loop:

  • Add a test (rangeInitial.ts)
  • Make it pass (rangeFirstTest.ts)
  • Refactor (rangeFirstRefactor.ts)
  • Repeat (rangeMoreTests.ts and rangeMoreTestsNegative.ts)

Installation and pre-requisites

npm i

How to test

Tests at certain points of the TDD loop will fail:

npm test