Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
badeball opened this issue Jul 13, 2022 · 1 comment

Comments

@badeball
Copy link
Owner

badeball commented Jul 13, 2022

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
Copy link
Owner Author

This happens all the time, most recently here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant