Hello Experts,
Can anyone help me with below issue?
FAIL ..tests../step-definitions/PaymentMethodsInBusiness.web.steps.tsx
Test suite failed to run
Invariant Violation: __fbBatchedBridgeConfig is not set, cannot invoke native modules
let storage:any;
if (Platform.05 !== ‘macos’ ) {
LegacyStorage = new LegacyStorage();
storage = AsyncStorageFactory.create<any>(legacyStorage, {});
}
at invariant (../../../node_modules/invariant/invariant.js:40:15)
at Object.<anonymous> (../../../node modules/react-native/Libraries/BatchedBridge/NativeModules.js:166:3)
Hello
Some workaround can be as below.
https://github.com/oblador/react-native-vector-icons/issues/1058
https://forums.expo.dev/t/fbbatchedbridgeconfig-is-not-set-cannot-invoke-native-modules/33053
https://goonlinetools.com/online-clipboard/#1861
Put above code in test-setup.js
As a temporary solution , Sensie removed/ignored running testcase of particular block creating above issue from pipeline.