jest expo sdk 34 __fbBatchedBridgeConfig

Hi All,
just upgraded to sdk 34. After following the upgrade instructions and “expo installing” a bunch of modules I finally got everything running in the simulator and on a device! Nice work!
But… when I was about to commit and of course running tests, it seems that jest is kind of not very happy:

Invariant Violation: __fbBatchedBridgeConfig is not set, cannot invoke native modules

      at invariant (node_modules/invariant/invariant.js:40:15)
      at Object.invariant (node_modules/@unimodules/react-native-adapter/node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:165:3)
      at Object.require [as NativeModules] (node_modules/@unimodules/react-native-adapter/node_modules/react-native/Libraries/react-native/react-native-implementation.js:342:12)
      at Object.<anonymous> (node_modules/@unimodules/react-native-adapter/src/NativeModulesProxy.ts:3:21)

I’m getting this on all component tests…

Libs used for testing:
“react-native-testing-library”: “^1.11.1”,
react-test-renderer: ^16.9.0,
jest-expo: ^34.0.0,

Hunch is that it’s a unimodule thingy.

Jest was working fine after upgrading to sdk 33…

I realise this is not the deepest description, but just in case theres a simple answer.

cheers,
Stephen.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.