Skip to content

Commit 94ae527

Browse files
committed
Fix test summary output
1 parent c4f99ae commit 94ae527

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/run-tests.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ run()
8181
process.exit(0); // eslint-disable-line n/no-process-exit
8282
})
8383
.catch(function (err) {
84-
console.error(chalk.red(err.toString()));
84+
console.error(chalk.red(`Error!`));
85+
86+
if ('passed' in err) {
87+
console.error(err);
88+
} else {
89+
console.error(chalk.red(err.toString()));
90+
}
8591
console.error(chalk.red('Failed!'));
8692
process.exit(1); // eslint-disable-line n/no-process-exit
8793
});

0 commit comments

Comments
 (0)