You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"type": "module" should be configured in package.json
@cucumber/cucumber dependency in package.json
Add the import sentence to any js file: import { setParallelCanAssign } from '@cucumber/cucumber';
📚 Any additional context?
Using require instead of import works correctly.
When importing everything from the package:import * as cucumber from '@cucumber/cucumber', the function is not available.
The text was updated successfully, but these errors were encountered:
👓 What did you see?
setParallelCanAssign is not available when trying to import it using ES Modules:
SyntaxError: The requested module '@cucumber/cucumber' does not provide an export named 'setParallelCanAssign'
✅ What did you expect to see?
As suggested in README info, I expect to be able to import it and use it.
📦 Which tool/library version are you using?
node v20.12.2
cucumber-js v10.9.0
🔬 How could we reproduce it?
My basic example: https://github.com/diazgn/test-cucumber-parallel
"type": "module"
should be configured inpackage.json
@cucumber/cucumber
dependency inpackage.json
import { setParallelCanAssign } from '@cucumber/cucumber';
📚 Any additional context?
Using
require
instead ofimport
works correctly.When importing everything from the package:
import * as cucumber from '@cucumber/cucumber'
, the function is not available.The text was updated successfully, but these errors were encountered: