Skip to content

Commit 161eb3f

Browse files
authored
Merge pull request #180 from asad9711/MLE-10219
remove dead code and bump version
2 parents 0e8cd6a + 3b365cf commit 161eb3f

File tree

6 files changed

+2
-30
lines changed

6 files changed

+2
-30
lines changed

commands/init.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,6 @@ function create_base_reporter_config_file(args) {
4949
if (args._.length == 1) {
5050
create_file(constants.LT_BASE_REPORTER_CONFIG_FILE_NAME, content)
5151
}
52-
// else if (args._.length > 1) {
53-
// //check if file or directory exists
54-
// if (fs.existsSync(args._[1])) {
55-
// let stats = fs.statSync(args._[1]);
56-
// if (stats.isFile()) {
57-
// make_file(args._[1], content)
58-
// }
59-
// else {
60-
// create_file(path.join(args._[1], constants.LT_CONFIG_NAME), content)
61-
// }
62-
// }
63-
// else {
64-
// filename = path.basename(args._[1])
65-
// var re = new RegExp(".+\\..+");
66-
// if (re.test(filename)) {
67-
// fs.mkdirSync(path.dirname(args._[1]), { recursive: true });
68-
// create_file(args._[1], content)
69-
// }
70-
// else {
71-
// fs.mkdirSync(args._[1], { recursive: true });
72-
// create_file(path.join(args._[1], constants.LT_CONFIG_NAME), content)
73-
// }
74-
// }
75-
// }
7652
};
7753

7854
module.exports = function (args) {

commands/run.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ module.exports = function (args) {
8484
*/
8585

8686
if (!("cypress_version" in lt_config.run_settings)){
87-
console.log("user has not passed cypress version in run_SEttings");
8887
lt_config.run_settings.cypress_version = cypressVersion;
8988
}
9089
batcher

commands/utils/batch/batch_runner.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ function run_test(payload, env = "prod", rejectUnauthorized) {
7979
}
8080

8181
async function run(lt_config, batches, env) {
82-
console.log("ltconfig ---- ", lt_config);
8382
totalBatches = batches.length;
8483
//console.log("Total number of batches " + totalBatches);
8584
return new Promise(function (resolve, reject) {

commands/utils/default_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
},
1717
],
1818
run_settings: {
19-
cypress_config_file: "cypress.json",
19+
cypress_config_file: "cypress.config.js",
2020
reporter_config_file: "base_reporter_config.json",
2121
build_name: "build-name",
2222
parallels: 1,

commands/utils/validate.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ module.exports = validate_config = function (lt_config, validation_configs) {
124124

125125
//validate if cypress config file is passed and exists
126126

127-
// coerce cypress_version
128127
cypress_version = semver.coerce(cypress_version).version;
129128
// validate cypress.json only in case of cypress<10
130129
if (
@@ -240,7 +239,6 @@ module.exports = validate_config = function (lt_config, validation_configs) {
240239
"Error!! Reporter JSON File has no keys, either remove Key reporter_config_file from lambdatest config or pass some options"
241240
);
242241
}else if (reporter_config.reporterEnabled && reporter_config.reporterEnabled != ""){
243-
console.log("reporter_config.reporterEnabled ", reporter_config.reporterEnabled);
244242
if (!reporter_config.reporterEnabled.includes("mochawesome")){
245243
reject("Error!! Please add mochawesome in reporterEnabled and add the related config");
246244
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lambdatest-cypress-cli",
3-
"version": "2.5.4",
3+
"version": "2.5.5",
44
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
55
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
66
"author": "LambdaTest <[email protected]>",

0 commit comments

Comments
 (0)