Skip to content

Commit 0a220d1

Browse files
authored
Merge pull request #263 from LambdaTest/dev
Release 31 july
2 parents 04ec6e6 + 07cbb99 commit 0a220d1

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

commands/utils/archive.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ function archive_project(lt_config) {
130130
).version;
131131
}
132132
}
133+
134+
if (lt_config.run_settings.detailed_command_logs) {
135+
if (lt_config.run_settings.npm_dependencies && !lt_config.run_settings.npm_dependencies['cypress-terminal-report']) {
136+
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.");
137+
} else if (!package.dependencies['cypress-terminal-report'] && !package.devDependencies['cypress-terminal-report']) {
138+
reject("cypress-terminal-report is not installed in your project. Please add it in your package.json file and try again.");
139+
}
140+
}
141+
133142
archive.append(
134143
JSON.stringify(package, null, 4),
135144
{

commands/utils/validate.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ module.exports = validate_config = function (lt_config, validation_configs) {
285285
reject("Type of stop_on_failure flag is not bool");
286286
}
287287

288+
if (
289+
lt_config.run_settings.detailed_command_logs &&
290+
typeof lt_config.run_settings.detailed_command_logs != "boolean"
291+
) {
292+
reject("Type of detailed_command_logs flag should be bool");
293+
}
294+
288295
//Check for project capability
289296
if (
290297
lt_config.run_settings.project_name &&

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "3.0.16",
3+
"version": "3.0.17",
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 <keys@lambdatest.com>",

0 commit comments

Comments
 (0)