What to test first
You cannot test everything. Test in this order of value:
- **Business logic*: the functions that decide your app's behaviour (pricing, permissions, validation).
- **Routes*: that each endpoint returns what it claims.
- **Database queries*: the most error-prone part, since bad SQL corrupts data.
Skip testing the obvious, like a router that just forwards a request. A focused suite around the risky parts gives you confidence to change code without fear.