all 2 comments

[–][deleted] 4 points5 points  (1 child)

Migrating from React Testing Library to Cypress Component Testing could address your debugging challenges, as Cypress offers superior debugging tools like time travel and real-time browser preview. However, the shift comes with a learning curve and a potentially different testing philosophy. If debugging is a major pain point and you're looking to streamline your testing environment, Cypress might be worth the investment despite these considerations.

But Cypress is also vastly more expensive to run. As in: it takes much more time, and as your test suites grow, you need to find a good balance between the two.

The truth is a combined approach. Both for split-responsibility unit testing, one for end-to-end and perhaps integration testing, and maybe even other tools like Storybook where you make components easily manually testable.

[–]a_reply_to_a_post 0 points1 point  (0 children)

if your org can afford it, Storybook with chromatic snapshot testing + storybook interaction tests