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