Closed
Description
Context
- Cucumber version: 6.0.5
- Node version: 13.1.0,
- Operating system: macOS 10.13.3 / same on circleci image node 13.1.0
Notice
This may be an issue on cucumber-expression, but I'm not sure.
Description
With cucumber-js version 5.1.0, the regexp ([^"]*)
was detected as an empty string if in the feature file it was empty.
As of version 6, it's null
.
Example
- Let's define the step:
const {When} = require('cucumber');
When(/^The value equals "([^"]*)"$/, async function(value) {
console.log(value);
});
- Let's call the step:
The value equals ""
- The console output is:
null
whereas it should just log an empty string.