Skip to content

Commit 4be0afc

Browse files
authored
Merge pull request #46 from LambdaTest/dev
Merge dev into master
2 parents d1bd0d6 + 1cdb28d commit 4be0afc

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

commands/utils/validate.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,17 @@ module.exports = validate_config = function (lt_config) {
109109
reject("Error!! Package.json File does not has correct json");
110110
}
111111
}
112+
if (
113+
lt_config["run_settings"]["ignore_files"] &&
114+
lt_config["run_settings"]["ignore_files"].length > 0
115+
){
116+
for(var i=0;i<lt_config["run_settings"]["ignore_files"].length;i++){
117+
if (lt_config["run_settings"]["ignore_files"][i]=="package.json"){
118+
reject("package.json is added to ignore_files in run settings, Please remove package.json from ignore_files parameter in lambdatest-config.json file")
119+
break
120+
}
121+
}
122+
}
112123
//validate if network field contains expected value
113124
if ("network" in lt_config["run_settings"]) {
114125
if (!([true, false].includes(lt_config["run_settings"]["network"]))){

index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ const argv = require('yargs')
4949
alias: 'tunnelName',
5050
describe: 'tunnel name',
5151
type: 'string'
52-
}).option('cef', {
53-
alias: 'cypress-env-file',
54-
describe: 'cypress environment file',
55-
type: 'string'
5652
}).option('brs', {
5753
alias: 'browsers',
5854
describe: 'browsers to run test format: platform:browser:version',
@@ -65,10 +61,6 @@ const argv = require('yargs')
6561
alias: 'ignore_files',
6662
describe: 'Files to ignore in the project zip',
6763
type: 'string'
68-
}).option('cv', {
69-
alias: 'cypress_version',
70-
describe: 'Cypress Version',
71-
type: 'string'
7264
}).option('sync', {
7365
alias: 'sync',
7466
describe: 'Sync Build',

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.0.5",
3+
"version": "2.0.6",
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)