README
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.
<script type="module">
import consoleWarnThrowsError from 'https://cdn.skypack.dev/console-warn-throws-error';
</script>
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