-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
expect(…).rejects.toMatch(…) should handle an Error object #3699
Comments
We also discuss about this in #3601 so it might be a dupe. |
Yeah it seems like a dupe... Closing in favor of #3601 |
I wouldn't close this; while the solution is being discussed on #3601, I think a quick documentation change is needed ATM so this issue seems fit for that as it looks like not even a solution is proposed yet in that issue. I think developers using the documentation should not be expected to find an issue in Github that tells them that the docs are wrong. So I propose to reopen this issue as: "Update the documentation to reflect current status of things". |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The current documentation contains the following example:
Simplified slightly, this would be expected to pass:
Running this test in Jest v20.0.4 (node v8.0.0) produces an error:
The Promise is rejecting with an Error rather than a string, as it should, but Jest isn't handling this as expected.
The text was updated successfully, but these errors were encountered: