Skip to content

Commit 29b0bdd

Browse files
Roshan NikamRoshan Nikam
authored andcommitted
handled check for browserstack json not present
1 parent 07fc992 commit 29b0bdd

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
@@ -913,7 +913,7 @@ exports.setOtherConfigs = (bsConfig, args) => {
913913
}
914914

915915
exports.readBsConfigJSON = (bsConfigPath) => {
916-
return fs.readFileSync(bsConfigPath, 'utf-8');
916+
return fs.existsSync(bsConfigPath) ? fs.readFileSync(bsConfigPath, 'utf-8') : null;
917917
}
918918

919919
exports.getCypressJSON = (bsConfig) => {

0 commit comments

Comments
 (0)