ECMAScript modules support (and docs)
See original GitHub issueIs your feature request related to a problem? Please describe.
Most of the examples in the README.md is using CommonsJS require/export
. Some docs use ECMAScript modules import/export
Considering Node.js 10 has reached EOL, and that Jest 27 has released, the whole community is rallying around ESM. I think it would make sense to update all documents to be in ESM rather than CJS.
Edit: It seems jest-playwright
does not support e.g. jest-playwright.config.js
to be written in ESM. So the request is to support ESM. See below.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:9 (9 by maintainers)
Top Results From Across the Web
ECMAScript modules | Node.js v19.3.0 Documentation
Node.js fully supports ECMAScript modules as they are currently specified and provides interoperability between them and its original module format, ...
Read more >JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax.
Read more >ECMAScript Modules - Jest
Jest ships with experimental support for ECMAScript Modules (ESM). ... at type in package.json or .mjs files), see their docs for details.
Read more >Documentation - ECMAScript Modules in Node.js - TypeScript
For the last few years, Node.js has been working to support running ECMAScript modules (ESM). This has been a very difficult feature to...
Read more >16. Modules - Exploring JS
ES6 is the first time that JavaScript has built-in modules. ES6 modules are stored in files. ... ES6 modules support cyclic dependencies automatically....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@thernstig i just put
help wanted
label for this task to let developers that they can start their contribution from this issue. But i suppose that it won’t help) I just try to find out some time on this task in a couple weeks@mxschmitt then I think that the README.md should be updated: