console-error-throws-error

Patches console.error to throw.

Usage no npm install needed!

<script type="module">
  import consoleErrorThrowsError from 'https://cdn.skypack.dev/console-error-throws-error';
</script>

README

console-error-throws-error

What?

Patches console.error to throw.

Why?

I want React PropType warnings to cause my tests to fail.

How?

npm install console-error-throws-error --save-dev

mocha --require console-error-throws-error