Skip to content
loading...

I'm a professional React developer, and this is how I test React components using Enzyme and Jest.

github logo ・1 min read  

About Me: I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at Better Coding Academy, and as part of what I do, I post videos on our YouTube channel at https://www.youtube.com/c/BetterCodingAcademy.

(Subscribe for awesome web development content!)

In the following video, I cover how to get started with testing React components using Enzyme and Jest. I explain how to use different testing methods (e.g. mocking, snapshots, etc.), and my reasoning behind it all. I hope you enjoy!

Full source code: https://github.com/lucaschen/jest-enzyme-demo

Happy coding!

twitter logo DISCUSS (2)
markdown guide
 

Your videos are fabulous, but you have to play them with a low speed like 0.75x, because you go too fast! 😁

 

Apologies... but hey, at least that setting exists, right??? 😂

Classic DEV Post from Mar 25

What are some good questions to ask when you're inheriting a codebase?

When you are getting a project assigned that has a considerable codebase already, what are some good...

Lucas Chen profile image
I turn people into web developers @Better Coding Academy. Our graduates get salaries ranging from $80k-$120k AUD. You can find me on Stack Overflow and YouTube. Let me know if you're keen to talk.