diff --git a/test/react-native/features/fixtures/scenario-launcher/src/lib/ScenarioLauncher.js b/test/react-native/features/fixtures/scenario-launcher/src/lib/ScenarioLauncher.js index 6251a09cdd..01713c88db 100644 --- a/test/react-native/features/fixtures/scenario-launcher/src/lib/ScenarioLauncher.js +++ b/test/react-native/features/fixtures/scenario-launcher/src/lib/ScenarioLauncher.js @@ -24,10 +24,17 @@ async function runScenario (scenarioName, apiKey, notifyEndpoint, sessionEndpoin console.error('[Bugsnag ScenarioLauncher] clearing persistent data') NativeInterface.clearPersistentData() + console.error(`[Bugsnag ScenarioLauncher] with config: ${JSON.stringify(nativeConfig)} (native) and ${JSON.stringify(jsConfig)} (js)`) + // start the native client console.error('[Bugsnag ScenarioLauncher] starting native Bugsnag') await NativeInterface.startBugsnag(nativeConfig) + // The calls between starting the native client and starting the js client + // Are typically longer than we see here, so we add a delay to ensure the + // native client is fully initialised before the js client is started + await new Promise(resolve => setTimeout(resolve, 50)) + // start the js client console.error('[Bugsnag ScenarioLauncher] starting js Bugsnag') Bugsnag.start(jsConfig)