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
In my App.js, I install sentry and call Sentry.setTagsContext. When running unit tests, the mock that comes with react-native-sentry is lacking some of the interfaces in production, i.e..
I am closing all old issues, please if this is still a problem feel free to revive it.
Also, consider moving to our new SDK @sentry/react-native if it still happens there please open a new issue.
OS:
Platform:
Output of
node -v && npm -v && npm ls --prod --depth=0
Config:
I have following issue:
I am testing that my root component works.
In my
App.js
, I install sentry and callSentry.setTagsContext
. When running unit tests, the mock that comes with react-native-sentry is lacking some of the interfaces in production, i.e..Same result on both react-native-sentry v 0.37.1 and 0.38.3
Jest 23.4.1
Steps to reproduce:
Actual result:
TypeError: _reactNativeSentry.Sentry.setTagsContext is not a function
Expected result:
Test calls mock
setTagsContext
and continues with testThe text was updated successfully, but these errors were encountered: