Unit Testing Principles
Start by testing the smallest units of behavior. Paint your tests with intent: what should happen, under which conditions, and with what inputs. Favor determinism and avoid flaky tests that drift with timing or environmental quirks.
Past practice has shown that well-scoped unit tests form the backbone of a lean, reliable codebase.