File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -126,8 +126,7 @@ module.exports = validate_config = function (lt_config, validation_configs) {
126126 // validate cypress.json only in case of cypress<10
127127 if (
128128 semverCompare ( cypress_version , "10.0.0" ) == - 1 &&
129- lt_config [ "run_settings" ] [ "cypress_config_file" ] &&
130- lt_config [ "run_settings" ] [ "cypress_config_file" ] != ""
129+ lt_config [ "run_settings" ] [ "cypress_config_file" ]
131130 ) {
132131 if ( ! fs . existsSync ( lt_config [ "run_settings" ] [ "cypress_config_file" ] ) ) {
133132 reject ( "Error!! Cypress Config File does not exist" ) ;
@@ -146,8 +145,7 @@ module.exports = validate_config = function (lt_config, validation_configs) {
146145 }
147146 } else if (
148147 semverCompare ( cypress_version , "10.0.0" ) >= 0 &&
149- lt_config [ "run_settings" ] [ "cypress_config_file" ] &&
150- lt_config [ "run_settings" ] [ "cypress_config_file" ] != ""
148+ lt_config [ "run_settings" ] [ "cypress_config_file" ]
151149 ) {
152150 reject (
153151 'Error!! --ccf flag and cypress_config_file is not cupported with cypress>=10,use \n --cy="--config-file <file path>"'
You can’t perform that action at this time.
0 commit comments