Skip to main content
UNIT-TESTING-BASICS5 MIN READ

Review A Test That Knows Too Much

Coach a reviewer comment that moves an implementation-coupled unit test toward public behavior.

Casey C PR author 01 Intent 02 Boundary 03 Rewrite PR review 30 sec Scenario Casey's test verifies that three helper functions are called while rendering an invoice address. The test may block refactoring instead of protecting invoice behavior. 3 spies implementation calls asserted 1 output address customers see

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us