-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
MockInstance: ReferenceError: jasmine is not defined #610
Comments
Hi @klizter, thanks for the info. It is interesting, might you share a min example / repo how you run tests without I've seen people using Thank you in advance! |
This is the failing test:
Seems like jest@next defaults to using
When I add |
Aha, thanks for the info. I'll add support for the new runner with the next release. It should happen the latest on the upcoming weekend. |
Hi there, unfortunately, current implementation of Let's see what they say. |
fix(jest): a fix in advance to listen to jest hooks #610
v12.1.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems. |
Much appreciated, thank you!! I’ll report back on monday |
Ah, sorry @klizter, it is a default auto comment because 1 PR was merged. I've added a fix to |
Hey, is there a workaround to get ng-mocks working with jest 27 or do we have to wait for their fix? |
Hi @Legiew, It is possible:
|
Hi @klizter, I hope this finds you well and healthy. Because of the long delay in merging a fix in If you use I hope this helps. |
test(e2e): pure jest configuration #610
v12.4.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems. |
Hi! I'm having the same error but I'm using Jest v26. I don't create a new thread since perhaps it's just something missing in my jest setup file imports. This is the relevant part of my file's content:
|
Hi @darioscattolini, for v26 it should work well. If you are getting the same error, it should be some other issue. Could you check that your test runner is jasmine? it's in jest's config. |
Hi @satanTime, |
I see. Thanks for the info. I'll try to update docs to emphasize how to install |
I'm having the follow issue with MockInstance in latest version (12.0.2) in combination with jest 27.0.0@next:
package.json:
The text was updated successfully, but these errors were encountered: