Skip to content

Successor Map · Testing

Enzyme to React Testing Library: tests that follow what users see

Enzyme was never declared deprecated, but its README lists adapters only through React 16. Teams on newer React test with React Testing Library, which checks what is on the screen instead of what is inside the component.

Slide: Enzyme on the left, an arrow, and React Testing Library on the right.
Status of the old tool
Still active
Effort to move
A real project
gen2.dev's view
Move when convenient
Sources checked
2026-11-28

Key facts

Gen 1Enzyme
Gen 2React Testing Library
Kind of toolTesting
Status of Gen 1Still active Enzyme's maintainers have published no deprecation or maintenance notice, and the repository's latest commits are dated October 22, 2025 (checked November 28, 2026).
Effort to moveA real project: plan it and run both for a while
What breaksTests built on shallow rendering, or on reading a component's state, props and instance, have no direct equivalent and must be rewritten around what a user sees.
Should you move?Move when convenient Enzyme still serves React 16 code, but its README lists no adapter for any later React version, so the move should be planned ahead of a React upgrade. This is gen2.dev's view, not the maintainers'.
Sources checked2026-11-28, 4 sources

Gen 1 and Gen 2 side by side

npm registry Gen 1 Gen 2
Packageenzyme@testing-library/react
Latest version3.11.016.3.3
Latest releaseDec 20, 2019Aug 27, 2026
First releaseDec 6, 2015May 30, 2019
LicenseMITMIT
Downloads, last week1,314,86692,595,556

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

What Gen 1 was

Enzyme is a testing utility for React components. A test renders a component, often with the shallow renderer that leaves child components out, and then inspects the result: its props, its state, its instance and its rendered tree.

It connects to React through an adapter that matches the React version. The README says, "At the moment, Enzyme has adapters that provide compatibility with React 16.x, React 15.x" and two older lines. Nothing newer is listed.

What replaced it

React Testing Library. It takes the opposite position on what a test should look at. A test renders the component in full, finds elements the way a person would, by role and by text, and asserts on what appears.

Enzyme's status needs care. Its maintainers have not called it deprecated, the repository is not archived, and the latest commits are dated October 22, 2025. Those commits are dependency updates. The issue asking for React 17 support was opened on August 11, 2020. The maintainer replied on October 21, 2020 that he was "still working on getting the adapter set up and passing tests." The issue is still open, and was locked on July 19, 2023.

What moving involves

This is a rewrite of tests, not a rename. The Testing Library guide recommends doing it incrementally, "by running the two test libraries side by side in the same application, porting your Enzyme tests to React Testing Library one by one."

That is running two systems at once in a test suite. Both libraries stay installed, new tests go in the new style, and old tests move when someone touches the component.

Several Enzyme habits simply disappear. There is no wrapper variable to keep, no equivalent of wrapper.update(), cleanup runs automatically after each test, and explicit act() calls are rarely needed.

What breaks

Shallow rendering. Testing Library's render is closer to Enzyme's mount. Child components render too, so a test that relied on them being absent now needs their dependencies or a mock.

State, props and instance. There is no direct way to read them. A test that asserted on state has to be reframed: what would a user do to cause this, and what would they see afterward?

Selectors. Finding elements by component name or CSS class gives way to queries such as getByRole('heading'). Components with poor accessible markup become hard to test, which is useful information but still work.

Some tests will not translate at all, because they were testing implementation details. Deleting those is a legitimate outcome.

Should you move?

Move when you are touching the tests anyway, and before you plan a React upgrade. Enzyme still works for React 16 code, and nothing in its repository says to stop using it. But its README lists no adapter beyond React 16, so the test suite decides how far React can move.

The exception is an application that will stay on React 16 until it is retired. Rewriting a working test suite for that codebase buys nothing.

Common questions

Is Enzyme dead?

No. Its maintainers have not announced an end. Enzyme's maintainers have published no deprecation or maintenance notice, and the repository's latest commits are dated October 22, 2025 (checked November 28, 2026).

What replaced Enzyme?

React Testing Library. Effort to move: A real project: plan it and run both for a while

Should I move off Enzyme?

gen2.dev's view: Move when convenient. Enzyme still serves React 16 code, but its README lists no adapter for any later React version, so the move should be planned ahead of a React upgrade.

Sources

  1. enzymejs/enzyme README - GitHub - Lists adapters for React 16.x, 15.x, 0.14.x and 0.13.x; carries no deprecation or archive notice.
  2. enzymejs/enzyme commit history - GitHub - The most recent commits are dependency updates dated October 22, 2025.
  3. Support for React 17, issue 2429 - enzymejs/enzyme (August 11, 2020) - The open request for a React 17 adapter, with the maintainer's replies from 2020; locked on July 19, 2023.
  4. Migrate from Enzyme - Testing Library documentation - Recommends running both libraries side by side and porting tests one by one; explains the differences in rendering and assertions.
  5. enzyme - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
  6. @testing-library/react - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.