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

Clean env variable CYPRESS_INSTALL_BINARY before checking #4579

Merged
merged 9 commits into from
Jul 8, 2019

Conversation

bahmutov
Copy link
Contributor

@bahmutov bahmutov requested review from brian-mann and kuceb June 26, 2019 21:09
@bahmutov bahmutov changed the title Clean env variable 4506 Clean env variable CYPRESS_INSTALL_BINARY before checking Jun 26, 2019
// so for sanity sake we should first trim whitespace characters and remove
// double quotes around environment strings if the caller is expected to
// use this environment string as a file path
return trim ? dequote(_.trim(result)) : result
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it remove the quotes first or trim first? Does an example like "foo.txt " work properly in your test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first trims the whitespace, then removes quotes, and there are unit tests, let me add one specifically for your case

@bahmutov bahmutov merged commit db62738 into develop Jul 8, 2019
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.

Cypress not installing using local zip on windows
3 participants