React native Sentry library breaking unit tests


#1

Hello guys, I just upgraded to React Native 0.42.3 and implemented react-native-sentry library following this post:

https://docs.sentry.io/clients/react-native/

Everything seems to be Ok, but after npm test I’m getting:

TypeError: RCTAsyncStorage.multiGet is not a function

      at Object.flushGetRequests (node_modules/react-native/Libraries/Storage/AsyncStorage.js:259:17)
      at Function.Object.<anonymous>.reactNativePlugin._restorePayload (node_modules/raven-js/plugins/react-native.js:155:18)
      at reactNativePlugin (node_modules/raven-js/plugins/react-native.js:68:23)
      at Object.<anonymous> (node_modules/react-native-sentry/lib/Sentry.js:3:41)
      at Object.<anonymous> (node_modules/react-native-sentry/index.js:2:13)

Tests are just default test suite, nothing extra. Anybody with same issue?


#2

I’m not sure what would do that. Is there some code you could share that fails?


#3

This should be fixed with the latest release, please update to version 0.5.1.


#4

I can confirm - it’s fixed by 0.5.1.

Thanks guys