-
-
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
jest 27: test failed with beforeEach/afterEach async #10932
Comments
This is not caused by Jest 27 directly, but by switching from I haven't investigated if it's a bug in Jasmine or Circus |
thanks a lot for the information, I can continue to adopt v27 for |
@ahnpnl I think these are bugs in Jasmine - Jasmine does not report throwing in the hooks or something.
you do |
indeed you are right. Look like |
Closing as duplicate of #9882 then. Thanks for trying 27 out! Please keep reporting any issues 🙂 |
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. |
🐛 Bug Report
After upgrading to
jest@27.0.0-next.2
, tests failed. As @SimenB mentioned it might be related to #10644I have checked about test environment, the tests failed not related to switching test environment to
node
as default.To Reproduce
Steps to reproduce the behavior:
Check out https://github.com/ahnpnl/ts-jest-babel-example/tree/test-fail
Run
yarn
to install deps, runyarn test
and observe all tests succeedRun
yarn upgrade jest@next babel-jest@next
, runyarn test
again and observe tests inwith-nest
folder all failExpected behavior
Tests in
with-nest
folder should passLink to repl or repo (highly encouraged)
https://github.com/ahnpnl/ts-jest-babel-example/tree/test-fail
envinfo
The text was updated successfully, but these errors were encountered: