| name | testing |
| description | Portable guidance for testing. Use when work involves testing. |
Core Principle
Test results, not implementation.
- ✅ Test that the output of a function matches expectations
- ✅ Test that a button click leads to the expected UI state
- ❌ Don't test that a specific internal function got called
- ❌ Don't test private state — only observable behavior
Throwaway Test Files
If creating ad-hoc files to test something during development, delete them when done. This does not apply to actual unit/integration tests committed to the repo.