Enzyme

Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output. More info

Articles & Tutorials

From Enzyme to React Native Testing Library: How I Changed My Way of Unit Testing (callstack.com)
Jul 08, 2020
How I went from Enzyme to React Native Testing Library and made my unit test more effective and closer to what the users can interact with.
  • Ferran Negre
Testing state changes in React functional components (blog.logrocket.com)
Jun 01, 2020
Learn how to test your React functional components and the state changes for components that use hooks with Jest and Enzyme as testing libraries.
  • Eslam Hefnawy
Enzyme vs. react-testing-library: A mindset shift (blog.logrocket.com)
May 04, 2020
In a world of myriad tools, it can be difficult to choose the one best suited for your purposes in different scenarios.
  • Will Soares
Testing React Hooks With Enzyme and React Testing Library (css-tricks.com)
Nov 29, 2019
In this tutorial, we will look at how to do that by making use of a to-do application built with hooks. We’ll cover writing of tests using Ezyme and React Testing Library, both of which are able to do just that.
  • Kingsley Silas
How to test React components with Mocha, Chai & Enzyme (robinwieruch.de)
Jul 21, 2019
Before setting up the test setup with different testing libraries and writing the React component tests, you will need a simple React application which can be tested in the first place.
How to test React components with Jest & Enzyme (robinwieruch.de)
Jul 17, 2019
In this React testing tutorial, we will introduce Enzyme in our Jest testing environment.
React/Redux Integration Tests with Jest & Enzyme (itnext.io)
Jun 12, 2019
I write tests because I want to be confident about two things: 1) That I didn’t break any existing code. (Existing tests to the rescue). 2)That my new code works as intended.
  • Quinton Aiken
Getting started with Enzyme for React (blog.logrocket.com)
May 24, 2019
In this tutorial, we’ll explore the different rendering options the utility provides, along with some practical examples.
  • Diogo Souza
My experience moving from Enzyme to react-testing-library (medium.com)
May 21, 2019
Hopefully, this post can help you understand some key differences between the two libraries and inspire you to explore them for yourself.
  • David Boyne
Writing Tests for React Applications Using Jest and Enzyme (css-tricks.com)
Mar 01, 2019
While it is important to have a well-tested API, solid test coverage is a must for any React application. Tests increase confidence in the code and helps prevent shipping bugs to users. That’s why we’re going to focus on testing in this post, specifically for React applications. By the end, you’ll be up and running with tests using Jest and Enzyme.
  • Kingsley Silas
How to set up Jest & Enzyme like a boss (medium.freecodecamp.org)
Nov 12, 2018
When I started out writing tests for my React application, it took me some tries before I figured out how to set up my testing environment using Jest & Enzyme.
  • Adeel Imran
Test-Driven Development with React, Jest, and Enzyme - Part 2 (testdriven.io)
Nov 06, 2018
In this part, we'll finish the UI by adding the number and operator keys before we dive in to adding the basic calculator functionality.
  • Caleb Pollman
Test-Driven Development with React, Jest, and Enzyme - Part 1 (testdriven.io)
Nov 06, 2018
In this post, we'll develop a React app using Test-Driven Development (TDD) with Jest and Enzyme.
  • Caleb Pollman
Components testing in React: what and how to test with Jest and Enzyme (medium.freecodecamp.org)
Oct 03, 2018
Testing React components may be challenging for beginners as well as experienced developers who have already worked with tests. It may be interesting to compare your own approaches with the ones we use in our project. In order to cover the codebase, you have to know which components must be tested and which code exactly in the component should be covered.
  • Alyona Pysarenko
How to Test React Components using Jest and Enzyme (blog.bitsrc.io)
Sep 26, 2018
Learn how to test React components using Jest and Enzyme
  • Linh Nguyen My
Testing Components in React Using Jest and Enzyme (code.tutsplus.com)
Aug 17, 2018
In this post, we'll get a deeper understanding of testing components in React by writing more practical and realistic tests.
  • Manjunath M
Testing React / Redux Apps with Jest & Enzyme - Part 2: Testing React Components (alligator.io)
Jun 03, 2018
In this part we’ll cover some simple examples on how to test React components.
  • Jasper Valero
Testing React / Redux Apps with Jest & Enzyme - Part 1: Installation & Setup (alligator.io)
May 20, 2018
Learn how to install and setup Jest and Enzyme for testing React.
  • Jasper Valero
React Testing Tutorial: Test Frameworks & Component Tests (robinwieruch.de)
Mar 19, 2018
A React tutorial on how to setup and use React component tests with testing frameworks such as Mocha, Chai, Sinon, Enzyme and Jest.

Courses & Video Series

React Recipes (lynda.com)
Jul 16, 2018
This course provides tested, easy-to-follow instructions to solve the most common challenges that React developers face every day
  • Diego Muracciole
Test React Components with Enzyme and Jest (egghead.io)
May 09, 2018
In this course we are going to work through properly setting up Enzyme with Jest to test rendered components.
  • Tyler Clark
Testing React with Enzyme and Jest (javascriptplayground.com)
Feb 12, 2018
A video series to enable you to test React components thoroughly, refactor with confidence and abstract logic out of components

Podcast Episodes

Testing Libraries with Michał Pierzchała (devchat.tv)
Jul 02, 2019
Michał explains why his team built the library and the problems they were experiencing with Enzyme. Enzyme and the React Native Testing Library are compared and the pro’s and con’s of using each is considered.
  • Charles Max Wood
  • Michał Pierzchała