
How to Make Your React Tests Resilient to Refactors
Before React 18 came along, I mainly used Enzyme to test my applications. To keep our applications up to date, we were required to convert all our tests from Enzyme to React Testing Library (RTL), as Enzyme was no longer supported from React 18. I thought I could do this by simply rewriting my tests…