-
-
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
[Feature]: Support loading jest.config.ts as ESM #13118
Comments
Related: #11453 |
PR welcome! Logic for config file resolution and reading is in https://github.com/facebook/jest/blob/1919ef13df544a968bd2d32e5d7b8a2a1c4b35d1/packages/jest-config/src/readConfigFileAndSetRootDir.ts |
That said, I don't think anything has changed since #11453 (comment) (i.e. you need a loader). But we should at least find |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
@SimenB as a first step, maybe let's get support for Took a quick shot at a PR - does it need anything else? (other than fixing the tests) Edit: @DerTimonius opened a new PR based on mine, which also fixes the tests: |
🚀 Feature Proposal
"type": "module"
is set in the package.json,jest.config.ts
should be treated as ESM, not CJSjest.config.mts
andjest.config.cts
should be looked for and loaded as ESM and CJS, respectivelyMotivation
jest.config.js
, and so ESM vs CJS handling differs between JS and TS configsExample
No response
Pitch
The text was updated successfully, but these errors were encountered: