This project implements the String Calculator kata using Test-Driven Development (TDD).
- Empty string returns 0
- Single number returns the number
- Two comma-separated numbers return their sum
- Multiple comma-separated numbers return their sum
- Support newline delimiters
- Support custom delimiters
- Throw exception for negative numbers
This project will be built step by step using TDD methodology with proper RED-GREEN-REFACTOR cycles.
Each commit will demonstrate the TDD process:
- RED: Write a failing test
- GREEN: Write minimal code to make the test pass
- REFACTOR: Improve the code while keeping tests green
- React + Vite
- Vitest for testing
- JavaScript ES6+
# Install dependencies
npm install
# Run tests
npm run test
# Run tests once
npm run test:run
# Start development server
npm run dev