1.0.0 • Published 6 years ago

fail-on-react-warn v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

fail-on-react-warn

Tired of React warnings slipping into your code base unnoticed?

1. Install

npm install --save-dev fail-on-react-warn

2. Use

import failOnReactWarn from 'fail-on-react-warn';

failOnReactWarn(); // In your test setup somewhere.

3. Profit

Now any test that causes a React warning to be logged to the console will fail.

Tested with Mocha and Tape using React 16.

Licence

MIT