Uses Bun test runner with TDD approach.
# Run all tests
bun test
# Run specific test file
bun test tests/handlers/typebox/function-types.test.ts
# Type checking
bun typecheck
# Linting
bun lint
# Formatting
bun formattests/
├── handlers/typebox/ # Handler unit tests
├── parsers/ # Parser tests
├── traverse/ # Dependency analysis tests
└── utils/ # Utility tests
- Write failing test
- Implement minimal code to pass
- Refactor while keeping tests green
- Run full test suite before commit
- Unit tests - Individual components
- Integration tests - End-to-end generation
- Type safety tests - Generated schema validation
- Edge case tests - Error conditions and complex scenarios