File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -1522,17 +1522,17 @@ exports.setOtherConfigs = (bsConfig, args) => {
1522
1522
exports . readBsConfigJSON = ( bsConfigPath ) => {
1523
1523
try {
1524
1524
fs . accessSync ( bsConfigPath , fs . constants . R_OK ) ;
1525
- return fs . readFileSync ( bsConfigPath , 'utf-8' ) ;
1526
- // console.log(`configContent: ${configContent}`);
1527
- // try {
1528
- // const bsConfig = JSON.parse(configContent);
1529
- // const normalizedBsConfig = exports.normalizeTestReportingConfig(bsConfig);
1530
- // console.log(`normalizedBsConfig: ${JSON.stringify(normalizedBsConfig)}`);
1531
- // return JSON.stringify(normalizedBsConfig);
1532
- // } catch (err) {
1533
- // logger.error(`Error parsing JSON from ${bsConfigPath}:`, err);
1534
- // return configContent ;
1535
- // }
1525
+ const configContent = fs . readFileSync ( bsConfigPath , 'utf-8' ) ;
1526
+ console . log ( `configContent: ${ configContent } ` ) ;
1527
+ try {
1528
+ const bsConfig = JSON . parse ( configContent ) ;
1529
+ const normalizedBsConfig = exports . normalizeTestReportingConfig ( bsConfig ) ;
1530
+ console . log ( `normalizedBsConfig: ${ JSON . stringify ( normalizedBsConfig ) } ` ) ;
1531
+ return JSON . stringify ( normalizedBsConfig ) ;
1532
+ } catch ( err ) {
1533
+ logger . error ( `Error parsing JSON from ${ bsConfigPath } :` , err ) ;
1534
+ return null ;
1535
+ }
1536
1536
} catch ( err ) {
1537
1537
return null ;
1538
1538
}
Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ const setCrashReportingConfig = (bsConfig, bsConfigPath) => {
353
353
console . log ( `Setting Crash Reporting Config with bsConfigPath: ${ bsConfigPath } ` ) ;
354
354
const browserstackConfigFile = utils . readBsConfigJSON ( bsConfigPath ) ;
355
355
console . log ( `checking the type of bsConfig: ${ typeof bsConfig } ` ) ;
356
+ console . log ( `printing username and acces_key from bsConfig: ${ bsConfig [ "auth" ] [ "username" ] } : ${ bsConfig [ "auth" ] [ "access_key" ] } ` ) ;
356
357
357
358
const cypressConfigFile = getCypressConfigFileContent ( bsConfig , null ) ;
358
359
const credentialsStr = JSON . stringify ( {
You can’t perform that action at this time.
0 commit comments