Skip to content

Commit

Permalink
fix: multidomain handler - add guards for test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Shevtsov authored and Oleksandr Shevtsov committed Apr 4, 2023
1 parent d257fee commit 9854797
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion writer/handleMultiDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ const sanitizeSuites = (folder, files, isGlobal) => {
for (const childID of suite.children) {
const child = files.find((file) => file.uuid === childID);

if (child.steps.length) {
if (!child) {
logger.writer('missing file for child %s', child.uuid);
continue;
}

if (child.steps && child.steps.length) {
logger.writer('child %s %s has steps', child.uuid, child.name);
continue;
}
Expand Down

0 comments on commit 9854797

Please sign in to comment.