Lesson 1 - TDD with AI: getting tests that hold up when the agent writes them
A developer found that AI-generated unit tests, while cheap to write, became expensive to maintain because they mocked almost everything and asserted on internal calls rather than behavior. By switchi…