What NOT to Assert in React Component Tests
Avoid these test assertions in Jest, React Testing Library tests.
Published in
7 min readFeb 10, 2022
When I was starting to write React tests, it was really tough. It felt like it requires a completely different mindset to that of writing application code.
One of the most terrifying questions I had was how do I know what I should expect()
in React…