Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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