Jasmine React Matchers
Custom Jasmine matchers to assert and compare React Elements.
Install
npm install jasmine-react-matchers --save
Description
It makes sure that each the elements have the same:
type
props
children
It ignores the key
and any other property associated with the Element.
Usage
import ReactMatchers from 'jasmine-react-matchers';
Refer to test/
for more examples.
Development
Run tests:
npm test