Skip to content

Commit

Permalink
Merge pull request #263 from LambdaTest/dev
Browse files Browse the repository at this point in the history
Release 31 july
  • Loading branch information
HRanjan-11 authored Jul 30, 2023
2 parents 04ec6e6 + 07cbb99 commit 0a220d1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions commands/utils/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ function archive_project(lt_config) {
).version;
}
}

if (lt_config.run_settings.detailed_command_logs) {
if (lt_config.run_settings.npm_dependencies && !lt_config.run_settings.npm_dependencies['cypress-terminal-report']) {
reject("cypress-terminal-report is not installed in your project. Please add it in npm_dependencies of your lambdatest-config.json file and try again.");
} else if (!package.dependencies['cypress-terminal-report'] && !package.devDependencies['cypress-terminal-report']) {
reject("cypress-terminal-report is not installed in your project. Please add it in your package.json file and try again.");
}
}

archive.append(
JSON.stringify(package, null, 4),
{
Expand Down
7 changes: 7 additions & 0 deletions commands/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,13 @@ module.exports = validate_config = function (lt_config, validation_configs) {
reject("Type of stop_on_failure flag is not bool");
}

if (
lt_config.run_settings.detailed_command_logs &&
typeof lt_config.run_settings.detailed_command_logs != "boolean"
) {
reject("Type of detailed_command_logs flag should be bool");
}

//Check for project capability
if (
lt_config.run_settings.project_name &&
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lambdatest-cypress-cli",
"version": "3.0.16",
"version": "3.0.17",
"description": "The lambdatest-cypress-cli is LambdaTest's command-line interface (CLI) aimed to help you run your Cypress tests on LambdaTest platform.",
"homepage": "https://github.com/LambdaTest/lambdatest-cypress-cli",
"author": "LambdaTest <[email protected]>",
Expand Down

0 comments on commit 0a220d1

Please sign in to comment.