Skip to content

Commit 3f415f9

Browse files
committed
remove commented code
1 parent a919b5f commit 3f415f9

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

commands/init.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ function create_file(file_path, content) {
1212
}
1313

1414
function create_ltconfig_file(args) {
15-
// console.log("args - ", args);
16-
// console.log("args length - ", args._.length);
17-
// console.log("EXITING");
18-
// exit(1);
19-
2015
let config = require('./utils/default_config.js')
2116
let content = JSON.stringify(config, null, 3);
2217
if (args._.length == 1) {
@@ -82,7 +77,7 @@ function create_base_reporter_config_file(args) {
8277

8378
module.exports = function (args) {
8479

85-
// create_ltconfig_file(args);
80+
create_ltconfig_file(args);
8681
create_base_reporter_config_file(args);
8782

8883
};

commands/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ module.exports = function (args) {
108108
.start(tunnelArguments)
109109
.then((status) => {
110110
batch_runner
111-
.run_batches(lt_config, batches, env, cypressVersion)
111+
.run_batches(lt_config, batches, env)
112112
.then(function (exit_code) {
113113
console.log("stopping tunnel");
114114
tunnelInstance
@@ -150,7 +150,7 @@ module.exports = function (args) {
150150
});
151151
} else {
152152
batch_runner
153-
.run_batches(lt_config, batches, env, cypressVersion)
153+
.run_batches(lt_config, batches, env)
154154
.then(function (exit_code) {
155155
if (lt_config["run_settings"]["exit-on-failure"]) {
156156
process.exit(exit_code);

commands/utils/batch/batch_runner.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ function run_test(payload, env = "prod", rejectUnauthorized) {
7878
});
7979
}
8080

81-
async function run(lt_config, batches, env, cypressVersion) {
81+
async function run(lt_config, batches, env) {
82+
console.log("ltconfig ---- ", lt_config);
8283
totalBatches = batches.length;
8384
//console.log("Total number of batches " + totalBatches);
8485
return new Promise(function (resolve, reject) {
@@ -115,12 +116,9 @@ async function run(lt_config, batches, env, cypressVersion) {
115116
},
116117
username: lt_config["lambdatest_auth"]["username"],
117118
access_key: lt_config["lambdatest_auth"]["access_key"],
118-
type: "cypress",
119-
cypressVersion: cypressVersion,
119+
type: "cypress"
120120
});
121121

122-
// console.log("paylaod ", payload);
123-
// process.exit(1);
124122
run_test(
125123
payload,
126124
env,

commands/utils/validate.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ module.exports = validate_config = function (lt_config, validation_configs) {
8484
for (const [key, value] of Object.entries(
8585
package["devDependencies"]
8686
)) {
87-
console.log(key, value);
8887
if (key == "cypress") {
8988
cypress_flag = true;
9089
cypress_version = value;
@@ -222,14 +221,6 @@ module.exports = validate_config = function (lt_config, validation_configs) {
222221
reject("Smart UI porject name can not be blank");
223222
}
224223
}
225-
//validate if reporter json file is passed and exists
226-
// if (
227-
// lt_config["run_settings"]["reporter_config_file"] &&
228-
// lt_config["run_settings"]["reporter_config_file"] == ""
229-
// ){
230-
231-
// }
232-
// console.log("config ", lt_config["run_settings"]["reporter_config_file"]);
233224
if (
234225
lt_config["run_settings"]["reporter_config_file"] &&
235226
lt_config["run_settings"]["reporter_config_file"] != ""

0 commit comments

Comments
 (0)