rollbar / rollbar-react

React features to enhance using Rollbar.js in React Applications
https://docs.rollbar.com/docs/react
MIT License
42 stars 10 forks source link

Let propType errors cause test failure #49

Closed waltjones closed 2 years ago

waltjones commented 2 years ago

Description of the change

This came up while testing https://github.com/rollbar/rollbar-react/pull/46. I noticed the propTypes failures weren't causing a test failure. (propTypes errors only generate a console.error; they don't throw.) This PR fixes that globally for all components under test.

Type of change

Development

Code review