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
transformer is required, but should be optional. If a transformer is not provided for a parameter type that returns a single capture group, then it will return the original value as a string.
However, if a parameter type has two capture groups, it needs a transformer that returns all arguments, or else it only returns only the first found argument in a capture group. That, however, does not require a transformer as the code will still execute.
Current behavior
cypress-cucumber-preprocessor/lib/public-member-types.ts
Lines 3 to 7 in 055d8df
transformer
is required, but should be optional. If a transformer is not provided for a parameter type that returns a single capture group, then it will return the original value as a string.However, if a parameter type has two capture groups, it needs a transformer that returns all arguments, or else it only returns only the first found argument in a capture group. That, however, does not require a transformer as the code will still execute.
Desired behavior
Make
transformer
be optional:Test code to reproduce
Versions
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: