Skip to content

Jest unit tests failing after upgrading to 24.6.X #59480

@vpmedia

Description

@vpmedia

Version

24.6.0

Platform

Ubuntu 22.04 LTS (Github runner)

Subsystem

No response

What steps will reproduce the bug?

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?

Unit tests are completed.

What do you see instead?

Unit tests are failing.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    vmIssues and PRs related to the vm subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions