browserstack-cypress-cli 1.19.1 → 1.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/helpers/constants.js
CHANGED
|
@@ -120,7 +120,7 @@ const validationMessages = {
|
|
|
120
120
|
EMPTY_RUN_SETTINGS: "Empty run settings",
|
|
121
121
|
EMPTY_CYPRESS_PROJ_DIR:
|
|
122
122
|
"cypress_proj_dir is not set in run_settings. See https://www.browserstack.com/docs/automate/cypress/sample-tutorial to learn more.",
|
|
123
|
-
EMPTY_CYPRESS_CONFIG_FILE:
|
|
123
|
+
EMPTY_CYPRESS_CONFIG_FILE:
|
|
124
124
|
"cypress_config_file is not set in run_settings. See https://www.browserstack.com/docs/automate/cypress/configuration-file to learn more.",
|
|
125
125
|
VALIDATED: "browserstack.json file is validated",
|
|
126
126
|
NOT_VALID: "browerstack.json is not valid",
|
|
@@ -129,9 +129,9 @@ const validationMessages = {
|
|
|
129
129
|
INVALID_PARALLELS_CONFIGURATION:
|
|
130
130
|
"Invalid value specified for parallels to use. Maximum parallels to use should be a number greater than 0.",
|
|
131
131
|
INVALID_CYPRESS_CONFIG_FILE: "Invalid cypress_config_file",
|
|
132
|
-
CYPRESS_CONFIG_FILE_NOT_FOUND:
|
|
132
|
+
CYPRESS_CONFIG_FILE_NOT_FOUND:
|
|
133
133
|
"No cypress config file was found at <location> directory.",
|
|
134
|
-
MORE_THAN_ONE_CYPRESS_CONFIG_FILE_FOUND:
|
|
134
|
+
MORE_THAN_ONE_CYPRESS_CONFIG_FILE_FOUND:
|
|
135
135
|
"Cypress does not allow more than one cypress config file.",
|
|
136
136
|
INVALID_CYPRESS_JSON: "cypress.json is not a valid json",
|
|
137
137
|
INVALID_DEFAULT_AUTH_PARAMS:
|
|
@@ -309,16 +309,21 @@ const allowedFileTypes = [
|
|
|
309
309
|
"mjpeg",
|
|
310
310
|
"y4m",
|
|
311
311
|
"tsx",
|
|
312
|
-
"pfx"
|
|
312
|
+
"pfx",
|
|
313
|
+
"cfr",
|
|
313
314
|
];
|
|
314
315
|
|
|
315
316
|
const filesToIgnoreWhileUploading = [
|
|
316
317
|
"**/node_modules/**",
|
|
317
318
|
"node_modules/**",
|
|
318
319
|
"package-lock.json",
|
|
320
|
+
"**/package-lock.json",
|
|
319
321
|
"package.json",
|
|
322
|
+
"**/package.json",
|
|
320
323
|
"browserstack-package.json",
|
|
324
|
+
"**/browserstack-package.json",
|
|
321
325
|
"tests.zip",
|
|
326
|
+
"**/tests.zip",
|
|
322
327
|
"cypress.json",
|
|
323
328
|
"cypress.config.js",
|
|
324
329
|
"cypress.config.ts",
|
|
@@ -173,7 +173,7 @@ function isUsageReportingEnabled() {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
function redactBsConfig(bsConfig) {
|
|
176
|
-
if(typeof bsConfig === 'object' && !utils.isUndefined(bsConfig.run_settings)) {
|
|
176
|
+
if(typeof bsConfig === 'object' && !utils.isUndefined(bsConfig) && !utils.isUndefined(bsConfig.run_settings)) {
|
|
177
177
|
if(!utils.isUndefined(bsConfig.run_settings["projectId"])) { bsConfig.run_settings["projectId"] = REDACTED }
|
|
178
178
|
if(!utils.isUndefined(bsConfig.run_settings["record-key"])) { bsConfig.run_settings["record-key"] = REDACTED }
|
|
179
179
|
}
|