---
name: Testing Standards — 80% Min Coverage
description: Mandatory TDD with BDD-style tests, 80% minimum coverage, tests must actually run with proof before commits
type: feedback
---

All new code requires tests with minimum 80% coverage. Tests use bun:test with BDD-style describe/it syntax. Tests MUST actually be executed with proof of passing before any commit or PR.

**Why:** Project enforces mandatory TDD to prevent false confidence and catch infrastructure issues before merge.

**How to apply:** Run `bun test --coverage` before any commit. Include test execution evidence in PRs. Test files go in `tests/` directory. Use helpers from `tests/setup.ts`.
