You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Jest unit tests failing after upgrading to 24.6.X #59480
I'm using NODE_OPTIONS=--experimental-vm-modules with jest.
My unit tests started to fail: Test suite failed to run, module is already linked ReferenceError: You are trying to import a file after the Jest environment has been torn down. From ...
With node v24.5 it works fine.
How often does it reproduce? Is there a required condition?
Always failing.
What is the expected behavior? Why is that the expected behavior?
Activity
legendecas commentedon Aug 15, 2025
Would you mind sharing a minimum reproduction? Thank you!
For reference, this is likely a result of the change in #59117.
vpmedia commentedon Aug 15, 2025
@legendecas https://github.com/vpmedia/phaser/actions/runs/16987123010/job/48158304307
kevva commentedon Aug 15, 2025
I can reproduce this one as well.
hai-x commentedon Aug 15, 2025
I just create a minimum reproduction. https://github.com/proxy/gist.github.com/hai-x/e69842571201cfded7c12035fe71f395.
Hopefully this is enough for you to troubleshoot. ❤️
3ru commentedon Aug 16, 2025
Running into the same issue.
Pin Node version to 24.5 until Jest issue is solved
Peg Node 24 build at v24.5.
mlarabi commentedon Aug 21, 2025
The same issue happens with
vitestby the way. We had to pin to node:24.5 in order to unlock our pipeline.module: allow overriding linked requests for a ModuleWrap
module: allow overriding linked requests for a ModuleWrap
jehy commentedon Sep 18, 2025
Updating to 24.7.0 solved this issue for me.
module: allow overriding linked requests for a ModuleWrap
module: allow overriding linked requests for a ModuleWrap