mlmorg / react-hyperscript

Hyperscript syntax for React.js markup
MIT License
711 stars 45 forks source link

Fix tests that check for absence of react warnings #37

Closed lo1tuma closed 6 years ago

lo1tuma commented 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.