tdd-testing
Installation
SKILL.md
Test-Driven Development (TDD) for DEVS
TDD is mandatory for all code in src/lib/ and src/stores/. This ensures LLMs can safely enhance features without causing regressions.
TDD Workflow
- Red: Write a failing test that describes the expected behavior
- Green: Write the minimum code necessary to make the test pass
- Refactor: Improve the code while keeping tests green
- Verify: Run
npm run test:coveragebefore committing
Test File Structure
Tests mirror the source structure:
src/lib/orchestrator.ts→src/test/lib/orchestrator.test.tssrc/stores/agentStore.ts→src/test/stores/agentStore.test.tssrc/components/AgentCard.tsx→src/test/components/AgentCard.test.tsx