expect-react-shallow
A Chai’s expect like API wrapper for unexpected-react. It also accepts JSX instead of ShallowRenderer instance.
Installation
npm install --save-dev expect-react-shallow
Usage
;;; Component { return <div className="foo">Hello React!</div>; } ;
API
tohave;tohaverenderedwithall;tohaveexactly;to;tocontain;tocontainwithall;tonot;tonotcontain;tonotcontainwithall;
See details in unexpected-react docs.
Changelog
The changelog can be found on the Releases page.
Contributing
Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.
Author
License
The MIT License, see the included License.md file.