-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
TypeError: _fakeTimers(β¦).JestFakeTimers is not a constructor #10441
Comments
I've run into this as well. Here is a stack trace:
|
i have the same error, just with
|
i was not that radical, instead i checked the yarn.lock file, and upgraded dependencies that were using older version of jest. |
This article pointed me out to the solution:
in
|
Sounds like version mismatches - does anyone have a reproduction? |
What worked for me, was adding this to
|
Adding this to
|
The result of the 'yarn test' on the local machine is absolutely fine. |
If you're having issues on CI but not locally it's likely to be an issue with your install - using a lockfile might help. As this still hasn't gotten a reproduction I'll close this. |
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
TypeError: _fakeTimers(β¦).JestFakeTimers is not a constructor
To Reproduce
Steps to reproduce the behavior:
test: 'jest'
script inpackage.json
The
node_modules
is always re-created from scratch while creating the Docker image.Expected behavior
The
RUN npm test
should successfully run the test casesLink to repl or repo (highly encouraged)
NA
envinfo
Crosspost on Stackoverflow: https://stackoverflow.com/q/63522963/2404470
The text was updated successfully, but these errors were encountered: