File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,9 @@ const validate = (bsConfig, args) => {
255
255
}
256
256
}
257
257
258
- if ( configFilesPresent . length === 0 && bsConfig . run_settings . cypress_config_filename !== 'false' ) reject ( Constants . validationMessages . CYPRESS_CONFIG_FILE_NOT_FOUND )
258
+ if ( configFilesPresent . length === 0 && bsConfig . run_settings . cypress_config_filename !== 'false' ) {
259
+ reject ( Constants . validationMessages . CYPRESS_CONFIG_FILE_NOT_FOUND . replace ( '<location>' , cypressFileDirectory ) ) ;
260
+ }
259
261
if ( configFilesPresent . length > 1 && bsConfig . run_settings . cypress_config_filename !== 'false' ) {
260
262
logger . warn ( `We found the following cypress config files ${ configFilesPresent . join ( ', ' ) } at this location: ${ cypressFileDirectory } ` ) ;
261
263
reject ( Constants . validationMessages . MORE_THAN_ONE_CYPRESS_CONFIG_FILE_FOUND ) ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ const validationMessages = {
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
123
EMPTY_CYPRESS_CONFIG_FILE :
124
- "cypress_config_file is not set in run_settings. See https://www.browserstack.com/docs/automate/cypress/sample-tutorial to learn more." ,
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" ,
127
127
NOT_VALID_JSON : "browerstack.json is not a valid json" ,
@@ -130,7 +130,7 @@ const validationMessages = {
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
132
CYPRESS_CONFIG_FILE_NOT_FOUND :
133
- "No cypress config file was found." ,
133
+ "No cypress config file was found at <location> directory ." ,
134
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" ,
You can’t perform that action at this time.
0 commit comments