-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Empty strings params trip parsing in v6+ #1241
Comments
Interesting. Yep appears to be a bug. Will open an issue on cucumber-expressions (which lives in the cucumber monorepo) |
@charlierudolph thanks for filing the bug there, I wasn't sure where it needed to be 😄 I noticed a fix was merged 9 days ago in the monorepo. Is there any plans to do a release? This is blocking our migration to v6. Thanks |
6.0.3 was released, but it still gives me the same error |
@Gerb81 it will be included in the next release of cucumber-expressions: https://github.com/cucumber/cucumber/blob/master/cucumber-expressions/CHANGELOG.md |
@Gerb81 I just released cucumber-expressions 8.0.2. Can you try again? (If you have a |
@aslakhellesoy it worked, thank you! |
@jbblanchet Can you check if this issue can get closed? |
@FibreFoX sure. Didn't know you were waiting for me. I'll upgrade cucumber this morning and will let you know. |
@FibreFoX It works with an caveat. If I ensure my cucumber-expressions is ^8.1.0 it'll work, but [email protected] is still only asking for cucumber-expressions ^8.0.1, which still has the bug. So with lockfiles, it's possible to still get the problem. For this issue to be truly closed, I think a 6.0.4 release that asks for the patched dependency would be preferable. |
Opened a PR to explicitly update the dependency here. |
v6.0.4 released with the updated dependency |
Repro in: https://github.com/jbblanchet/cucumber-error
Test
Given string "" equals ""
will crash withbecause the string is
undefined
, and not empty, and the code attempts to doundefined.replace
. Not sure if the fix would be to parse the empty string as an empty string, to to check for undefined in cucumber-expressions. Also not sure this was the right repo to open the issue.The text was updated successfully, but these errors were encountered: