Skip to content

Commit 5227035

Browse files
committed
added check for terminal reporter
1 parent 17b5bc1 commit 5227035

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
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
{

0 commit comments

Comments
 (0)