unexpected-enzyme
v1.0.0-alpha.4
Published
unexpected plugin to test React components with enzyme
Downloads
7
Readme
unexpected-enzyme
🚧 Work in progress
Installation
$ npm install unexpected unexpected-enzyme enzyme enzyme-adapter-react-16
with yarn
$ yarn add unexpected unexpected-enzyme enzyme enzyme-adapter-react-16
Setup
const unexpected = require('unexpected');
const unexpectedEnzyme = require('unexpected-enzyme');
const expect = unexpected.clone().use(unexpectedEnzyme);
Documentation
Find it here
Development
$ git clone [email protected]:albertfdp/unexpected-enzyme.git
$ cd unexpected-enzyme
$ yarn install # or npm install
Running tests
$ yarn test
Contributing
We welcome pull requests, bug reports, and extra test cases. If you find something that doesn't work as you believe it should, or where the output isn't as good as it could be, raise an issue!
Thanks
Huge thanks to @bruderstein for an awesome job with unexpected-react, which this project relies on internally. And to chai-enzyme as a great inspiration.