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

fix(cli): double dash -- argv forwarding #2339

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

noomorph
Copy link
Collaborator

  • This is a small change

Description:

The recent refactor of local-cli/test.js in #2269 has introduced the following bug concerning -- <...direct passthrough args> syntax.

Expected:

> detox test ... e2e/mytest.js -- --forceExit
... jest --forceExit ... e2e/mytest.js

Actual:

> detox test ... e2e/mytest.js -- --forceExit
... jest ... -- --forceExit e2e/mytest.js

In other words, there should be just --forceExit, not -- --forceExit in this example.
Detox should not forward the double dash (--) itself, when this syntax is used.

@noomorph noomorph requested a review from rotemmiz as a code owner September 17, 2020 08:53
@noomorph noomorph merged commit a87c8b0 into master Sep 17, 2020
@noomorph noomorph deleted the fix/double-dash-argv-forwarding branch September 17, 2020 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant