You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up bugsnag for react native according to the docs, but I didn't see anything mentioned about how to mock for jest. I'm getting the following error when I try to run a render test:
console.warn
Bugsnag.getPlugin() was called before Bugsnag.start()
console.error
The above error occurred in the <App> component:
in App
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
TypeError: Cannot read property 'createErrorBoundary' of undefined
I understand that the problem is that Bugsnag.getPlugin() is undefined so it's trying to call createErrorBoundary on undefined, but I don't know how to fix this. Is there a way to mock it?
The text was updated successfully, but these errors were encountered:
There is some discussion around this here with some examples of how you could look to mock bugsnag. Perhaps you could try those and see how you get on.
I set up bugsnag for react native according to the docs, but I didn't see anything mentioned about how to mock for jest. I'm getting the following error when I try to run a render test:
I understand that the problem is that
Bugsnag.getPlugin()
is undefined so it's trying to callcreateErrorBoundary
on undefined, but I don't know how to fix this. Is there a way to mock it?The text was updated successfully, but these errors were encountered: