diff --git a/commands/utils/archive.js b/commands/utils/archive.js index 5584074..ebef383 100644 --- a/commands/utils/archive.js +++ b/commands/utils/archive.js @@ -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), { diff --git a/commands/utils/validate.js b/commands/utils/validate.js index c245cbc..cc18c72 100644 --- a/commands/utils/validate.js +++ b/commands/utils/validate.js @@ -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 && diff --git a/package-lock.json b/package-lock.json index 7b993f8..15605a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lambdatest-cypress-cli", - "version": "3.0.16", + "version": "3.0.17", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lambdatest-cypress-cli", - "version": "3.0.16", + "version": "3.0.17", "license": "MIT", "dependencies": { "@lambdatest/node-tunnel": "latest", diff --git a/package.json b/package.json index 1c1e06e..9a0f283 100644 --- a/package.json +++ b/package.json @@ -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 ",