-
Notifications
You must be signed in to change notification settings - Fork 920
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
ReferenceError: jest is not defined #8802
Labels
Comments
the version of the env ( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using a node module component:
$ bit create module modules/hello-world
Steps to Reproduce
Expected Behavior
This should work and pass the test
Screenshots, exceptions and logs
The issue is that structures as
it
,describe
,equal
and so on ... works with no issue,but when trying to use
jest.spyOn
orjest.restoreAllMocks()
, I got:Specifications
for harmony workspace
bitdev.node/[email protected]
for leagacy
Additional context
I tried to instal jest by myself, but
@bitdev/[email protected]
is already provided with that installation, also installbit install @jest/globals
with no luckThe text was updated successfully, but these errors were encountered: