Enzyme Shallow Equal
enzyme-shallow-equal
Adaptation of react-addons-shallow-compare, for independent usage
Testing
javascript
shallow rendering
shallowRender
test
reactjs
react
flux
testing
test utils
assertion helpers
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install enzyme-shallow-equalCode example
import { EnzymeShallowEqual } from "enzyme-shallow-equal";
export function Example() {
return (
<div>
<h2>Enzyme Shallow Equal</h2>
<EnzymeShallowEqual />
</div>
);
}Pros & cons
Pros
- Actively maintained by Jordan Harband
- 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
- 0 open issues on GitHub