-
-
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
example expect().rejects.toThrow not working as expected #4945
Comments
Does this work in the current stable release? I'm using 21.2.1 and still getting issues.
I still get the same error:
And if not how can I solve this problem without using a non stable branch? |
This is just supported in the beta for now (new stable coming in the not too distant future). Please see #3601 for workarounds |
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. |
Do you want to request a feature or report a bug?
What is the current behavior?
Test case cannot pass got following
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can
yarn install
andyarn test
.Following example in https://facebook.github.io/jest/docs/en/expect.html#rejects
jest test.spec.js
What is the expected behavior?
expected test case should be pass.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
The text was updated successfully, but these errors were encountered: