Test-Driven Development (TDD)
Overview
Write the test first. Watch it fail. Write minimal code to pass.
Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.
Violating the letter of the rules is violating the spirit of the rules.
Step 0: 테스트 프레임워크 자동 감지
TDD 시작 전 프로젝트의 테스트 환경을 감지합니다:
# 프레임워크 감지
_TEST_CMD=""
[ -f "package.json" ] && grep -q "vitest" package.json && _TEST_CMD="npx vitest run"
[ -f "package.json" ] && grep -q "j
[Description truncada. Veja o README completo no GitHub.]