Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
JavaScript Testing utilities for React
| Date | Stars |
|---|---|
| 2026-07-24 | 19824 |
| 2026-07-25 | 19826 |
| 2026-07-28 | 19826 |
| 2026-07-30 | 19826 |
| 2026-08-06 | 19826 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
Enzyme
=======
[](https://gitter.im/enzymejs/enzyme?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://www.npmjs.com/package/enzyme) [](https://github.com/enzymejs/enzyme/blob/master/LICENSE.md) [](https://travis-ci.org/enzymejs/enzyme) [](https://codecov.io/gh/enzymejs/enzyme/branch/master)
Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output.
You can also manipulate, traverse, and in some ways simulate runtime given the output.
Enzyme's API is meant to be intuitive and flexible by mimicking jQuery's API for DOM manipulation
and traversal.
Upgrading from Enzyme 2.x or React < 16
===========
Are you here to check whether or not Enzyme is compatible with React 16? Are you currently using
Enzyme 2.x? Great! Check out our [migration guide](/docs/guides/migration-from-2-to-3.md) for help
moving on to Enzyme v3 where React 16 is supported.
### [Installation](/docs/installation/README.md)
To get started with enzyme, you can simply install it via npm. You will need to install enzyme
along with an Adapter corresponding to the version of react (or other UI Component library) you
are using. For instance, if you are using enzyme with React 16, you can run:
```bash
npm i --save-dev enzyme enzyme-adapter-react-16
```
Each adapter may have additional peer dependencies which you will need to install as well. For instance,
`enzyme-adapter-react-16` has peer dependencies on `react` and `react-dom`.
At the moment, Enzyme has adapters that provide compatibility with `React 16.x`, `React 15.x`,
`React 0.14.x` and `React 0.13.x`.
The following adapters are officially provided by enzyme, and have the following compatibility with
React:
| Enzyme Adapter Package | React semver compatibility |
| --- | --- |
| `enzyme-adapter-react-16` | `^16.4.0-0` |
| `enzyme-adapter-react-16.3` | `~16.3.0-0` |
| `enzyme-adapter-react-16.2` | `~16.2` |
| `enzyme-adapter-react-16.1` | <code>~16.0.0-0 || ~16.1</code> |
| `enzyme-adapter-react-15` | `^15.5.0` |
| `enzyme-adapter-react-15.4` | `15.0.0-0 - 15.4.x` |
| `enzyme-adapter-react-14` | `^0.14.0` |
| `enzyme-adapter-react-13` | `^0.13.0` |
Finally, you need to configure enzyme to use the adapter you want it to use. To do this, you can use
the top level `configure(...)` API.
```js
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
```
3rd Party Adapters
=============
It is possible for the community to create additional (non-official) adapters that will make enzyme
work with other libraries. If you have made one and it's not included in the list below, feel free
to make a PR to this README and add a link to it! The known 3rd party adapters are:
| Adapter Package | For Library | Status |
| --- | --- | --- |
| [`enzyme-adapter-preact-pure`](https://github.com/preactjs/enzyme-adapter-preact-pure) | [`preact`](https://github.com/developit/preact) | (stable) |
|[`enzyme-adapter-inferno`](https://github.com/bbc/enzyme-adapter-inferno)|[`inferno`](https://github.com/infernojs/inferno)|(work in progress)|
Running Enzyme Tests
===========
Enzyme is unopinionated regarding which test runner or assertion library you use, and should be
compatible with all major test runners and assertion libraries out there. The documentation and
examples for enzyme use [Mocha](https://mochajs.org) and [Chai](https://chaijs.com), but you
should be able to extrapolate to your framework of choice.
If you are interested in using enzyme with custom assertions and convenience functions for
testing your React componentExcerpt of 9,755 characters
Read on GitHubJordan Harband · @socketdev @tc39 · United States
896
Leland Richardson · Anthropic · Colombia
294
Nuno Campos · @witanlabs · United Kingdom
54
Toru Kobayashi · @mercari · Japan
43
Brandon Dail · @discord · United States
31
Yi-Shan, Chen · Taiwan
22
Jason Quense
20
16
Josh Minzner · @trialspark
15
Blaine Kasten · @togetherai · Mongolia
13
Jason Zukewich · United States
13
Hieu Lam
9
Edward Yerburgh · @facebook · United Kingdom
7
Alec Robins
6
Marlon Bernardes · Microsoft · Ireland
6
Ian Christian Myers · Airbnb · United States
6
Michael Williamson · United Kingdom
5
Dominik Ferber · Germany
5
Madison Capps · @airbnb · United States
5
Greg Bergé · Argos · France
4
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:13343270334cc6b1, topic:testing