Enzyme
enzyme
JavaScript Testing utilities for React
Testing
javascript
shallow rendering
shallowRender
test
reactjs
react
flux
testing
test utils
assertion helpers
Stars
20k
Weekly
0
Open issues
282
Bundle
~60 kB
Installation
npm install enzymeCode example
import { Enzyme } from "enzyme";
export function Example() {
return (
<div>
<h2>Enzyme</h2>
<Enzyme />
</div>
);
}Pros & cons
Pros
- Actively maintained by Leland Richardson
- 0 weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 282 open issues on GitHub