May 29, 2021
I'm Going to Show You My Bad Tests (Don't Laugh)
My early React tests were a mess of implementation details: checking setState was called, verifying class names, asserting on component internals. They broke constantly and gave me zero confidence. Let me show you exactly how bad they were.