console-warn-throws-error
What?
Patches console.warn
to throw.
Why?
I want React PropType warnings to cause my tests to fail.
How?
npm install console-warn-throws-error --save-dev
mocha --require console-warn-throws-error
Patches console.warn
to throw.
I want React PropType warnings to cause my tests to fail.
npm install console-warn-throws-error --save-dev
mocha --require console-warn-throws-error
npm i console-warn-throws-error
3
1.1.0
ISC