Skip to content

Conversation

yousif-bugsnag
Copy link
Contributor

Goal

Previously all of the React Native scenarios that trigger native exceptions did so via an async turbo module method. This PR updates the test runner to support running native scenarios synchronously, and adds a new separate scenario to test native errors in synchronous turbo module methods.

Design

Native scenarios can implement a runSync method to allow them to be executed synchronously - the new scenario just calls runSync on the same native scenario (UnhandledNativeErrorScenario)

Testing

Covered by CI

Copy link

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 47.11 kB 14.09 kB
After 47.11 kB 14.09 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 99156ff

@yousif-bugsnag yousif-bugsnag merged commit 0a11eb6 into next Aug 21, 2025
82 checks passed
@yousif-bugsnag yousif-bugsnag deleted the PLAT-14049/synchronous-native-exception-tests branch August 21, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants