DEV Community

Discussion on: What do you think of React Testing Library?

Collapse
 
kentcdodds profile image
Kent C. Dodds • Edited

for components there are really two people that need to be tested for.

Agreed! And I have a blog post on that here: Avoid the Test User. If you have ideas on how to improve the docs, please open issues/pull requests.

I'd like to add that many of the limitations are not React Testing Library's but actually JSDOM. If you want, you can use React Testing Library in the browser (with karma for example) and you avoid some of the issues you mentioned (though you get a few new ones).

And yes, user-event is the place for stuff like that πŸ‘

Collapse
 
dylan_piercey profile image
Dylan Piercey

Excellent, thanks for the link to the article - I hadn’t read that one. Sounds like we’re on the same page πŸ™‚.

I certainly plan to contribute some more in the future!