Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambdatest-cypress-cli

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdatest-cypress-cli - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

4

commands/utils/set_args.js

@@ -261,2 +261,6 @@ const constants = require("./constants.js");

//check for download folders
if (!("downloads" in lt_config["run_settings"])) {
lt_config["run_settings"]["downloads"] = "";
}
//get specs from current directory if specs are not passed in config or cli

@@ -263,0 +267,0 @@ if (

@@ -22,2 +22,3 @@ const fs = require("fs");

}
//Validate spec file

@@ -29,2 +30,3 @@ if (!("specs" in lt_config["run_settings"])) {

}
//validate if browsers are not empty

@@ -36,2 +38,3 @@ if (!("browsers" in lt_config)) {

}
//validate parellel session

@@ -115,10 +118,17 @@ let parallels = lt_config["run_settings"]["parallels"];

}
if (
lt_config["run_settings"]["ignore_files"] &&
lt_config["run_settings"]["ignore_files"].length > 0
){
for(var i=0;i<lt_config["run_settings"]["ignore_files"].length;i++){
if (lt_config["run_settings"]["ignore_files"][i]=="package.json"){
reject("package.json is added to ignore_files in run settings, Please remove package.json from ignore_files parameter in lambdatest-config.json file")
break
) {
for (
var i = 0;
i < lt_config["run_settings"]["ignore_files"].length;
i++
) {
if (lt_config["run_settings"]["ignore_files"][i] == "package.json") {
reject(
"package.json is added to ignore_files in run settings, Please remove package.json from ignore_files parameter in lambdatest-config.json file"
);
break;
}

@@ -129,8 +139,20 @@ }

if ("network" in lt_config["run_settings"]) {
if (!([true, false].includes(lt_config["run_settings"]["network"]))){
if (![true, false].includes(lt_config["run_settings"]["network"])) {
reject("Error!! boolean value is expected in network key");
}
}
if (
"downloads" in lt_config["run_settings"] &&
lt_config["run_settings"]["downloads"] != ""
) {
let download_folders = lt_config["run_settings"]["downloads"].split(",");
for (folder in download_folders) {
if (folder[0] != ".") {
reject("Error!! dowloads folder path is not relative ", folder);
}
}
}
resolve("Validated the Config");
});
};

184

index.js

@@ -14,95 +14,93 @@ #!/usr/bin/env node

function (yargs) {
return (
yargs
.option("ccf", {
alias: "cypress-config-file",
describe: "path of the config file",
type: "string",
})
.option("lcf", {
alias: "lambdatest-config-file",
describe: "path of the lambdatest config file",
type: "string",
})
.option("s", {
alias: "specs",
describe: "path of the spec file or directory or pattern",
type: "string",
})
.option("env", {
alias: "env",
describe: "environment",
type: "string",
})
.option("bn", {
alias: "build-name",
describe: "build name",
type: "string",
})
/*.option("t", {
return yargs
.option("ccf", {
alias: "cypress-config-file",
describe: "path of the config file",
type: "string",
})
.option("lcf", {
alias: "lambdatest-config-file",
describe: "path of the lambdatest config file",
type: "string",
})
.option("s", {
alias: "specs",
describe: "path of the spec file or directory or pattern",
type: "string",
})
.option("env", {
alias: "environment",
describe: "environment",
type: "string",
})
.option("bn", {
alias: "build-name",
describe: "build name",
type: "string",
})
.option("t", {
alias: "tags",
describe: "build tags",
type: "string",
})*/
.option("p", {
alias: "parallels",
describe: "no of parellel sessions",
type: "string",
})
.option("envs", {
alias: "envs",
describe: "environment variables",
type: "string",
})
.option("tun", {
alias: "tunnel",
describe: "tunnel",
type: "string",
})
.option("tname", {
alias: "tunnel_name",
describe: "tunnel name",
type: "string",
})
.option("brs", {
alias: "browsers",
describe: "browsers to run test format: platform:browser:version",
type: "string",
})
.option("bi", {
alias: "build-identifier",
describe: "Build Identifier / Build Counter",
type: "string",
})
.option("if", {
alias: "ignore_files",
describe: "Files to ignore in the project zip",
type: "string",
})
.option("sync", {
alias: "sync",
describe: "Sync Build",
type: "string",
})
.option("autostart", {
alias: "tat",
describe: "Tunnel Auto Start",
type: "string",
})
.option("headless", {
alias: "headless",
describe: "Run in headless mode",
type: "boolean",
})
.option("net", {
alias: "network",
describe: "Capture Network logs",
type: "string",
})
.option("eof", {
alias: "exit-on-failure",
describe: "Exit With Code 1 on failure",
type: "string",
})
);
})
.option("p", {
alias: "parallels",
describe: "no of parellel sessions",
type: "string",
})
.option("envs", {
alias: "env-variables",
describe: "environment variables",
type: "string",
})
.option("tun", {
alias: "tunnel",
describe: "tunnel",
type: "string",
})
.option("tname", {
alias: "tunnel_name",
describe: "tunnel name",
type: "string",
})
.option("brs", {
alias: "browsers",
describe: "browsers to run test format: platform:browser:version",
type: "string",
})
.option("bi", {
alias: "build-identifier",
describe: "Build Identifier / Build Counter",
type: "string",
})
.option("if", {
alias: "ignore_files",
describe: "Files to ignore in the project zip",
type: "string",
})
.option("sync", {
alias: "sync-mode",
describe: "Sync Build",
type: "string",
})
.option("autostart", {
alias: "tat",
describe: "Tunnel Auto Start",
type: "string",
})
.option("headless", {
alias: "headless-mode",
describe: "Run in headless mode",
type: "boolean",
})
.option("net", {
alias: "network",
describe: "Capture Network logs",
type: "string",
})
.option("eof", {
alias: "exit-on-failure",
describe: "Exit With Code 1 on failure",
type: "string",
});
},

@@ -125,7 +123,7 @@ function (argv) {

.option("user", {
alias: "user",
alias: "username",
describe: "username",
type: "string",
})
.option("access_key", {
.option("ak", {
alias: "access_key",

@@ -136,3 +134,3 @@ describe: "Access Key",

.option("env", {
alias: "env",
alias: "environment",
describe: "environment",

@@ -139,0 +137,0 @@ type: "string",

{
"name": "lambdatest-cypress-cli",
"version": "2.1.3",
"version": "2.1.4",
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc