-
Notifications
You must be signed in to change notification settings - Fork 40
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
Use default port cypress #538
Use default port cypress #538
Conversation
@@ -286,6 +286,9 @@ const validate = (bsConfig, args) => { | |||
if (!Utils.isUndefined(bsConfig.run_settings.nodeVersion) && typeof(bsConfig.run_settings.nodeVersion) === 'string' && !bsConfig.run_settings.nodeVersion.match(/^(\d+\.)?(\d+\.)?(\*|\d+)$/)) | |||
logger.warn(Constants.validationMessages.NODE_VERSION_PARSING_ERROR); | |||
|
|||
if(!Utils.isUndefined(cypressConfigFile.port)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can add a spec for this. Eg.
browserstack-cypress-cli/test/unit/bin/helpers/capabilityHelper.js
Lines 1200 to 1207 in 007ae51
it("should log a warning if nodeVersion is not in x.x.x format where x is a number", () => { | |
return capabilityHelper | |
.validate(bsConfig, {}) | |
.then(function (data) { | |
sinon.assert.called(loggerWarningSpy); | |
}); | |
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…fault-port-cypress
…fault-port-cypress
No description provided.