Testing·Advanced·Conceptual·1 min read
Why can a test that passes still be a bad test?
Short interview answer
It may assert on implementation details, so it breaks on safe refactors, or it may test so little that a real regression slips through — for example rendering a component and only checking it didn't throw. A good test fails when behavior regresses and only then.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.