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
Cucumber 8.0.0 will be released in the near future and is currently available on npm as a release candidate.
We should support it, with or without cucumber 7.x.x depending on the compatibility issues.
Trying to support it now could allow us to officially support it when it's released.
I tested 8.0.0-rc.1 on a project using veggies 1.0.1, and I got this error when launching the tests :
node:internal/modules/cjs/loader:488
throw e;
^
Error: Cannot find module '/usr/src/app/node_modules/@cucumber/cucumber/lib/cli.js'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15)
at resolveExports (node:internal/modules/cjs/loader:482:14)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/usr/src/app/node_modules/@ekino/veggies/src/cli/index.js:4:21)
at Module._compile (node:internal/modules/cjs/loader:1101:14) {
code: 'MODULE_NOT_FOUND',
path: '/usr/src/app/node_modules/@cucumber/cucumber/package.json'
}
It might be on my side though, any additional tests welcome !
The text was updated successfully, but these errors were encountered:
My test leads to the same problem. However, the behavior is a bit strange when running the test-cli script of Veggies.
It seems to pass the import step but cucumber does not recognize the custom steps...
1) Scenario: Should prevent snapshots creation # tests/cli/features/veggies.feature:3
? When I run command yarn veggies --require tests/cli/support tests/cli/dummy_features --tags @preventSnapshotsCreation --preventSnapshotsCreation
Undefined. Implement with the following snippet:
When('I run command yarn veggies --require tests\/cli\/support tests\/cli\/dummy_features --tags @preventSnapshotsCreation --preventSnapshotsCreation', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
[...]
I think it could be related to cucumber/cucumber-js#1649 which adds support for ESM into Cucumber. We should expect breaking changes. 😱
Cucumber 8.0.0 will be released in the near future and is currently available on npm as a release candidate.
We should support it, with or without cucumber 7.x.x depending on the compatibility issues.
Trying to support it now could allow us to officially support it when it's released.
I tested 8.0.0-rc.1 on a project using veggies 1.0.1, and I got this error when launching the tests :
It might be on my side though, any additional tests welcome !
The text was updated successfully, but these errors were encountered: