Common mistakes with React Testing Library | Kent C. Dodds

I've been getting a lot of hands-on time with React Testing Library recently and, for the most part, I really like it. Still, I get caught out from time-to-time, and this article has a lot of great advice on best practices. In particular (as I tweeted this week) I've found that following this guidance doesn't just make writing tests easier, it also gives you accessibility coverage for free, which is just awesome ๐Ÿ˜Ž

Explore Other Notes

โฌ… Newer

Hey now

Can you use progressive enhancement when building a webย app (whatever that is)? Of course you can, HEY have proven so (not that it should have needed […]

Older โžก

CSS only carousel

Carousels are the devil's work, but they remain incredibly useful and popularย UI elements ๐Ÿ˜‘ Having a solid implementation that will work without JavaScript, making it more lightweight and […]
  • I've been getting a lot of hands-on time with React Testing Library recently and, for the most part, I really like it. Still, I get caught out from time-to-time, and this article has a lot of great […]
  • Murray Adcock.
Journal permalink