-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ReferenceError: spyOn is not defined after migration to 12.4.0 #6063
Comments
This method and many other jasmine methods were removed in jest 27. |
Are you planning to add a migration for it in next versions? |
Any update on this issue? I am getting the same error and some more after going from jest 26 to 27 with
|
I'm having the same issue. |
Since I'm using Jasmine tests under Jest, I solved this by adding the following to
See: https://jestjs.io/blog/2021/05/25/jest-27#flipping-defaults |
I'm having the same issue right now as well. Did anybody find a solution for this? I'm hoping I don't have to manually fix a large amount of tests. |
If you are trying to find a solution to |
Probably won't be able to get away with a find and replace but that did work for me. Thanks! |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
After migration from 12.3.6 to 12.4.0 (jest is bumped to 27) I get
ReferenceError: spyOn is not defined
on every spyOn occurence in my testsExpected Behavior
After migration I would expect that test would work as before (compile & execute successfully).
Steps to Reproduce
Migrate from 12.3.6 to 12.4.0
Failure Logs
Environment
It is happening when running test e.g.
nx affected:test
The text was updated successfully, but these errors were encountered: