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

Fix asserting a throw in a catch block #298

Merged
merged 1 commit into from Sep 4, 2019
Merged

Fix asserting a throw in a catch block #298

merged 1 commit into from Sep 4, 2019

Conversation

AzureMarker
Copy link
Contributor

This wraps the throw call on the generator to catch any errors that might get thrown in a catch block. Now expectSaga can assert on errors thrown in the saga's catch blocks.

Fixes #296

This wraps the `throw` call on the generator to catch any errors that
might get thrown in a catch block. Now `expectSaga` can assert on errors
thrown in the saga's catch blocks.

Fixes #296
@AzureMarker
Copy link
Contributor Author

Build is failing due to an issue with Yarn on Node 4 and 5: yarnpkg/yarn#6619

Same issue appears on the master build.

@jp928
Copy link
Collaborator

jp928 commented Sep 4, 2019

@Mcat12 This is great. I am merging now. Thanks for your pull request.

@jp928 jp928 merged commit 1b52329 into jfairbank:master Sep 4, 2019
@AzureMarker
Copy link
Contributor Author

@jp928 When do you plan on releasing this fix?

@jp928
Copy link
Collaborator

jp928 commented Sep 6, 2019

@Mcat12 I will release it today.

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.

Failing to catch thrown errors in catch block
2 participants