Run tests before and after changes. Only add tests for complex logic, not boilerplate. Database tests matter most.
Verify changes don't break things. Don't create test bloat.
Announce: "I'm running tests to verify the changes."
Database (pgTAP): This is where real logic lives. Test it thoroughly.
Frontend (Vitest): Thin RPC layer. Only test:
Before implementing:
bun run test
If tests fail, fix them first.
After implementing:
bun run test
If tests fail, your change broke something. Fix it.
YES - add tests for:
NO - don't test:
bun run test # All tests (unit + db)
bun run test:unit # Frontend only
bun run test:db # Database only (pgTAP)