This package has been deprecated

Author message:

fail-on-react-warn has been replaced with the better named and more more generic https://www.npmjs.com/package/fail-tests-on-text - please use it instead

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i fail-on-react-warn

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.98 kB

Total Files

5

Last publish

Collaborators

  • rouanw