Skip to content

process.env.profile is the string "undefined" instead of type undefined when no --profile is specified in the mode "run-multiple" #4130

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

Closed
mirao opened this issue Jan 12, 2024 · 0 comments · Fixed by #4131

Comments

@mirao
Copy link
Contributor

mirao commented Jan 12, 2024

It's the same issue as #3339, but for the mode "run-multiple" only.
The bug causes that if you run codeceptjs run-multiple dev (without the option --profile), then process.env.profile is "undefined" instead of undefined
It may cause issues during further parsing of the variable. We hit the issue when trying to do something like env = process.env.profile; env = env || "dev"; which relies on undefined type value.

Details

  • CodeceptJS version: 3.5.8
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 a pull request may close this issue.

1 participant