Ooo, I like this pattern from @kentcdodds for minimizing boilerplate in...


Ooo, I like this pattern from @kentcdodds for minimizing boilerplate in React tests. Note how the helpers in the renderLoginForm function make the actual test clear and readable. It's easy to spot the differences between each test. 👍

More: https://kentcdodds.com/blog/aha-testing

View original on X