Skip to content

Commit e90b4ed

Browse files
committed
removed extra logging
1 parent 654cf99 commit e90b4ed

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

bin/helpers/readCypressConfigUtil.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,44 +70,34 @@ exports.loadJsFile = (cypress_config_filepath, bstack_node_modules_path) => {
7070
load_command = `set NODE_PATH=${bstack_node_modules_path}&& node "${require_module_helper_path}" "${cypress_config_filepath}"`
7171
}
7272
logger.debug(`Running: ${load_command}`)
73-
console.log(`Running: ${load_command}`)
7473
cp.execSync(load_command)
75-
console.log(`Loaded Cypress config file: ${config.configJsonFileName}`)
76-
console.log('Content of config file:', fs.readFileSync(config.configJsonFileName, 'utf8'))
7774
const fileContent = fs.readFileSync(config.configJsonFileName).toString();
78-
console.log('Content of config file2:', fileContent);
7975
const cypress_config = JSON.parse(fileContent);
8076
if (fs.existsSync(config.configJsonFileName)) {
8177
fs.unlinkSync(config.configJsonFileName)
8278
}
83-
console.log('Loaded Cypress config:', cypress_config)
8479
return cypress_config
8580
}
8681

8782
exports.readCypressConfigFile = (bsConfig) => {
88-
console.log('Reading Cypress config file:', JSON.stringify(bsConfig));
8983
const cypress_config_filepath = path.resolve(bsConfig.run_settings.cypressConfigFilePath)
9084
try {
9185
const cypress_config_filename = bsConfig.run_settings.cypress_config_filename
9286
const bstack_node_modules_path = path.join(path.resolve(config.packageDirName), 'node_modules')
9387
const conf_lang = this.detectLanguage(cypress_config_filename)
9488

9589
logger.debug(`cypress config path: ${cypress_config_filepath}`);
96-
console.log(`cypress config path: ${cypress_config_filepath}`);
9790

9891
if (conf_lang == 'js' || conf_lang == 'cjs') {
99-
console.log('Detected config language:', conf_lang)
10092
return this.loadJsFile(cypress_config_filepath, bstack_node_modules_path)
10193
} else if (conf_lang === 'ts') {
102-
console.log('Detected config language:', conf_lang)
10394
const compiled_cypress_config_filepath = this.convertTsConfig(bsConfig, cypress_config_filepath, bstack_node_modules_path)
10495
return this.loadJsFile(compiled_cypress_config_filepath, bstack_node_modules_path)
10596
}
10697
} catch (error) {
10798
const errorMessage = `Error while reading cypress config: ${error.message}`
10899
const errorCode = 'cypress_config_file_read_failed'
109100
logger.error(errorMessage)
110-
console.log("error:", errorMessage)
111101
utils.sendUsageReport(
112102
bsConfig,
113103
null,
@@ -123,6 +113,5 @@ exports.readCypressConfigFile = (bsConfig) => {
123113
if (fs.existsSync(complied_js_dir)) {
124114
fs.rmdirSync(complied_js_dir, { recursive: true })
125115
}
126-
console.log('Cleaned up compiled JS directory:', complied_js_dir)
127116
}
128117
}

0 commit comments

Comments
 (0)