-
-
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 25 with node env fails on node 10.14.1 #9453
Comments
Interesting! This was the fix: nodejs/node#23206. Surfaced now since we use Good to have the issue for people googling, but I'll close it as it's not actionable 🙂 |
2155: Follow-up of #2107 r=mergify[bot] a=D4nte Also integrates changes from comit-network/comit-js-sdk#145. 2168: Upgrade node to version 12 r=mergify[bot] a=bonomat @thomaseizinger found an issue describing incompatibility of the node version we are using on circleCI and jest: jestjs/jest#9453. The tests are running locally. So let's upgrade circleCI as well. Co-authored-by: Franck Royer <[email protected]> Co-authored-by: Philipp Hoenisch <[email protected]>
For anyone having this issue, just upgrade to node version to 10.14.2 and it should get fixed! #StayAtHome |
@manwithsteelnerves THANK YOU! I would never have thought to check node version while debugging my issue, but this was it. |
@AndrewLeedham, you saved me from head ache brother. Thank you. |
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. |
💥 Regression Report
This is more to make people aware of what I found than an issue that should be fixed. After updating to jest
25.1.0
I saw some of my test suites failing with errors likeReferenceError: describe is not defined
andReferenceError: beforeAll is not defined
. Turns out the issue only occurs when using"testEnvironment": "node"
with node10.14.1
(and jest 25). Upgrading to node10.14.2
fixes the issue (or not specifying atestEnvironment
), so perhaps a node bug. Either way I wanted to post this here in case anyone comes across the same issue.Last working version
Worked up to version:
24.*
Stopped working in version:
25.1.0
To Reproduce
Steps to reproduce the behavior:
I created a minimal repro here: https://github.com/AndrewLeedham/repros/tree/1f7e042e241e2f439bd69d1073bafffa5200beb5/packages/jest-25-node
10.4.1
or run thedocker:build
script.test
script ordocker:test
script.Expected behavior
No errors with global jest functions in test suites.
Link to repl or repo (highly encouraged)
https://github.com/AndrewLeedham/repros/tree/1f7e042e241e2f439bd69d1073bafffa5200beb5/packages/jest-25-node
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: