# enzymejs/enzyme

JavaScript Testing utilities for React

Repository: https://github.com/enzymejs/enzyme
Canonical: https://ross.abutalabs.com/products/enzyme
Homepage: https://enzymejs.github.io/enzyme/
Language: JavaScript
License: MIT
License Family: permissive
Topics: enzyme, react, mocha, react-components, ava, jest, chai, assertion-library, traversal, test-runners, test, testing, assertions, test-runner
Last push: 2025-10-22T15:55:30+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 48, release rhythm 35, longevity 100
- inputs: {"age_days": 3949, "days_push": 315, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 19823, forks 1967 (observed 2026-08-28T04:11:29.297495+00:00)

## What it is
Enzyme is a JavaScript testing utility for React that makes it easier to assert, manipulate, and traverse React Components' output. Its API mimics jQuery's DOM manipulation style and works with test runners like Jest, Mocha, and Ava via version-specific React adapters.

## Use cases
- test react components
- assert on rendered component output
- shallow render react components in tests
- traverse and query the rendered dom of react components
- simulate user events on react components
- unit test react components with jest or mocha

## When to choose
- you maintain a legacy React 15/16 codebase already using Enzyme
- you prefer a jQuery-like traversal API for asserting component output
- you need shallow rendering of components with older React versions

## When to avoid
- you are starting a new React project - React Testing Library is the modern standard
- you use React 17 or 18, which lack official Enzyme adapters
- you want testing that emphasizes accessibility queries and user behavior over implementation details

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, e2e-testing, mocking
- domain: testing, frontend, web-development, developer-tools
- platform: -
- tags: react, react-testing, dom-traversal, assertion-library, jquery-like-api, test-utilities, component-testing, nodejs, javascript

## Member repositories
- enzymejs/enzyme (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.297495+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:59:25.638737+00:00, confidence not recorded.
  - readme: https://github.com/enzymejs/enzyme (fetched 2026-08-28T04:11:29.297495+00:00, sha 650b19d466e5)
  - homepage: https://enzymejs.github.io/enzyme/ (fetched 2026-08-29T07:58:23.577809+00:00, sha 24bf71f97a42)
- Data as of 2026-08-30T08:39:29.467469+00:00.
