A simple example of a Cucumber-JS project using ESM
Things to note:
"type": "module"
in the package.json to indicate it's an ESM projectcucumber.js
configuration file andsteps.js
using ESM syntaximport
configuration option instead ofrequire
to load support code
Full documentation on ESM in Cucumber: https://github.com/cucumber/cucumber-js/blob/main/docs/esm.md