Type stripping with VM modules #56550
Labels
invalid
Issues and PRs that are invalid.
strip-types
Issues or PRs related to strip-types support
vm
Issues and PRs related to the vm subsystem.
Version
v23.6.0
Platform
Subsystem
No response
What steps will reproduce the bug?
example.test.ts
.node --experimental-vm-modules node_modules/jest/bin/jest.js
Reproduction repository: https://github.com/slagiewka/jest_node_ts
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
Type stripping works with Jest and ESM (via VM modules).
What do you see instead?
The corresponding line in source code: https://github.com/jestjs/jest/blob/611d1a4ba0008d67b5dcda485177f0813b2b573e/packages/jest-runtime/src/index.ts#L501
Additional information
I'm not sure if this is something that is an issue on node or Jest side. I'll be happy to report it to Jest if there's nothing that node can do here.
The text was updated successfully, but these errors were encountered: