npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

fail-on-react-warn

1.0.0 • Public • Published

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

install

npm i fail-on-react-warn

Downloadsweekly downloads

6

version

1.0.0

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability