-
Notifications
You must be signed in to change notification settings - Fork 253
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
Hotfix: promise rejection configuration #2239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Scenario: reporting unhandled promise rejections as handled | ||
And I run the service "unhandled" with the command "node scenarios/unhandled-promise-rejection-as-handled" | ||
And I wait to receive an error | ||
Then the error is valid for the error reporting API version "4" for the "Bugsnag Node" notifier | ||
And the event "unhandled" is true | ||
And the event "unhandled" is false | ||
And the event "severity" equals "error" | ||
And the event "severityReason.type" equals "unhandledPromiseRejection" | ||
And the exception "errorClass" equals "Error" | ||
And the exception "message" equals "not handled" | ||
And the exception "type" equals "nodejs" | ||
And the "file" of stack frame 0 equals "scenarios/unhandled-promise-rejection.js" | ||
And the "file" of stack frame 0 equals "scenarios/unhandled-promise-rejection-as-handled.js" | ||
And the "lineNumber" of stack frame 0 equals 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was previously a duplicate of the scenario above, hence rewriting and not adding a new one
is there a reason we haven't added a scenario for React Native? |
@yousif-bugsnag just that we've covered it with unit tests - but it wouldn't hurt to add one I suppose! |
Goal
Ensure
reportUnhandledPromiseRejectionsAsHandled
config options is correctly handled and tested in react-nativeTesting
Add unit tests for react-native to ensure configuration (and typescript definitions) handle new config value