jest
jest copied to clipboard
[Feature]: Publish real ESM for `expect` (and perhaps other modules)
🚀 Feature Proposal
Publishing real ESM, rather than ESM that imports from CJS, would be really useful for expect as it allows it to be used in environments outside of Node.
Motivation
As it stands, this faux ESM is just a facade for CJS and doesn't work outside of Node.
Example
No response
Pitch
expect (and potentially other packages), are extracted so that others may use them (at least I think that's the idea). Choosing to ship an ESM facade, however, limits the usefulness quite a bit as users are locked to Node.
I'm hoping that this wouldn't be too big of a lift for Jest, as it seems there is some desire to ship ESM for consumers.
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.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.