-
-
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.hasAssertions() triggered in different test #4496
Comments
Checked out your project, installed with yarn, added |
Actually, there's indeed a bug. |
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. |
Hello, i found some bug while i use expect.hasAssertions || expect.assertions in async it().
My case:
https://github.com/a-omsk/x-task/blob/master/__tests__/components/Pipe.test.js
if i try to insert
expect.hasAssertions()
in firstit()
case i catch the error in nextit()
, but i have no anyexpect.hasAssertions()
in secondit()
My jest version: 21.0.1
The text was updated successfully, but these errors were encountered: