Closed imtiazhossain closed 5 years ago
Is Cucumber correctly parse your step? In most cases it using string passed as RegEx and non-backshalsed '+' symbol will not work as expected. When('I add {int} \+ {int}', function (num1, num2) { }
will works properly.
Also, please advice if all of your steps are parsing like regular string (not RegExp)
It looks fine now. Closing
Describe the bug When you have a definition with int such as:
When I add 1 + 1
with step definition
When('I add {int} + {int}', function(num1, num2) { return num1+num2; }
The cucumber step is highlighted as undefined but it still works
Expected behavior The highlight should go away
Screenshots If applicable, add screenshots to help explain your problem.
Cucumberautocomplete part of VSCode settings: