Skip to content

Commit dfd0329

Browse files
committed
Fixing the path issue for cypress config file
1 parent 1a6bc2c commit dfd0329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/helpers/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ exports.setCypressConfigFilename = (bsConfig, args) => {
164164

165165
bsConfig.run_settings.userProvidedCypessConfigFile = (userProvidedCypessConfigFile || (!this.isUndefined(bsConfig.run_settings.cypress_config_file)));
166166

167-
if (userProvidedCypessConfigFile || this.isUndefined(bsConfig.run_settings.cypress_config_file)) {
167+
if ((userProvidedCypessConfigFile || this.isUndefined(bsConfig.run_settings.cypress_config_file)) && !this.isUndefined(args.cypressConfigFile)) {
168168
bsConfig.run_settings.cypress_config_file = args.cypressConfigFile;
169169
bsConfig.run_settings.cypress_config_filename = path.basename(args.cypressConfigFile);
170170
} else if (!this.isUndefined(bsConfig.run_settings.cypress_config_file)) {

0 commit comments

Comments
 (0)