Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use react-native Devtools lib to symbolicate error stacks #111

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

kraenhansen
Copy link
Owner

This PR exposes a transformFailure function and provides an implementation for it on React Native, which calls into the symbolicateStackTrace function from the react-native Devtools lib to patch the stacktrace before sending it from the client to the Mocha Remote server.

To prevent out of order delivery of events to the server, sendEvent is wrapped in a queueEvent function, which awaits the sending of any previous message to ensure it gets delivered in the right order, this is also awaited before automatically disconnecting after a test run.

@kraenhansen kraenhansen self-assigned this Mar 20, 2024
@kraenhansen kraenhansen merged commit 38dbf3b into main Mar 20, 2024
1 check passed
@kraenhansen kraenhansen deleted the kh/react-native-symbolication branch March 20, 2024 12:15
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.

1 participant