-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Not yet ready: jest cannot run tests correctly in ESM mode and mocking in our tests will need rework. It's possible to have jest convert everything to CJS, however ESM-only features (e.g. import.meta.url) will then fail instead.
Ref:
- https://jestjs.io/docs/ecmascript-modules
- https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/
Jest ESM support:
- Meta: Native support for ES Modules jestjs/jest#9430
- esm: implement import.meta.resolve and make nodejs: scheme public nodejs/node#31032
- import.meta not allowed kulshekhar/ts-jest#1174
- Support ESM kulshekhar/ts-jest#1709
- [Bug]: SyntaxError: Cannot use 'import.meta' outside a module jestjs/jest#12183 (comment)
Code:
Issue:
Metadata
Metadata
Assignees
Labels
No labels