-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Sets the allowUncaught parameter for hooks. #2303
Conversation
@dima117 Thanks! Can you please add a test in |
I added a test for allowUncaught parameter in hooks. |
Do I need to do something else for this PR? |
@boneskull What is the state of this PR? |
Is it safe to call |
I think yes. Why it may be unsafe? |
@dima117 Apologies for not getting to this earlier. |
@@ -315,6 +315,17 @@ describe('Runner', function(){ | |||
}); | |||
|
|||
describe('allowUncaught', function() { | |||
var immediately; |
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.
Why are we monkeypatching Runner.immediately()
?
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.
It was done in order to run the hook synchronously.
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.
Why do we need to do that?
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.
We need it to catch the exception in the test method, instead of catching it on a global error handler.
Hello! What is the status of this PR? |
I may use some of this, though I don't expect the original author to sign a CLA at this point |
see #2302 |
#2302