
I have put together a write-up on testing React components with no React Testing Library in place.
It tries to follow best practices with a pinch of clarity on top.
https://webup.org/blog/writing-developer-friendly-react-component-tests/
Maybe it's opinionated. Would you test that way?
Excellent, Miroslav!
I've been looking for an uncluttered testing process without all the workarounds. And yours is more conversational than most I have seen. I am going to give this a try with the MeteorJS and NextJS React components that I write. Thank you for such a clear example set.
Thanks for the kind words. I have been using this approach of testing for the past 5 years in React.
The post itself is a light version of another write-up I published for css-tricks.com. It covers more examples and theory.
Hi Miroslav,
I am reading the CSS-Tricks post now. I appreciate the expanded content. I'll try to let you know as soon as I test it in detail.