Closed lo1tuma closed 6 years ago
Recent versions of React are using console.error instead of console.warn which is why catchWarns didn’t work anymore and the tests were not failing although we had a test that produces a warning. Now also console.error will also be stubbed.
console.error
console.warn
catchWarns
Recent versions of React are using
console.error
instead ofconsole.warn
which is whycatchWarns
didn’t work anymore and the tests were not failing although we had a test that produces a warning. Now alsoconsole.error
will also be stubbed.