Skip to content

Latest commit

 

History

History

esm-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

cucumber-esm-example

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 project
  • cucumber.js configuration file and steps.js using ESM syntax
  • import configuration option instead of require to load support code

Full documentation on ESM in Cucumber: https://github.com/cucumber/cucumber-js/blob/main/docs/esm.md