cypress-cucumber-preprocessor icon indicating copy to clipboard operation
cypress-cucumber-preprocessor copied to clipboard

Omit a warning when attempting to use cucumber-expressions in regular expressions

Open badeball opened this issue 3 years ago • 1 comments

Example of this:

Given(/^foo {string}/, () => {});

This is unequivocally an error and we can give a more appropriate message than that "a step definition is missing". Furthermore, users that really need this can supress the error like

Given(/^foo {string}/, { supressCucumberExpressionWarning: true }, () => {});

badeball avatar Jul 13 '22 14:07 badeball

This happens all the time, most recently here.

badeball avatar Jul 13 '22 14:07 badeball