DEV Community

Testing your apps like a boss with React.js and Jest

Chris Noring on June 09, 2019

Follow me on Twitter, happy to take your suggestions on topics or improvements /Chris In this article, we will cover the testing framework Jest. W...
Collapse
 
joeattardi profile image
Joe Attardi

Shoutout to React Testing Library (testing-library.com/docs/react-tes...)! I just refactored all my tests to use this library and it's been great.

I had previously been using Enzyme - I had to rethink how I do testing, but I think it's much less brittle now.

Collapse
 
softchris profile image
Chris Noring

hey Joe. Actually, I have an article on that dev.to/softchris/use-react-testing...

Collapse
 
vagoel profile image
Varun

Very well documentation Chris. Learning Jest felt like a breeze.

Collapse
 
johncsmithjr profile image
John C. Smith Jr.

Will this work for front-end apps only or back-end as well?

Collapse
 
softchris profile image
Chris Noring

backend as well.. Currently using it to test Node.js apps. Especially the mocking part is super useful with Node.js