Skip to content

Commit

Permalink
fix: unfinished step item (#32)
Browse files Browse the repository at this point in the history
* fix: unfinished step item

* fix: lint issue
  • Loading branch information
kobenguyent committed May 17, 2024
1 parent ee0fa3b commit 7ac279c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,13 @@ module.exports = (passedConfig) => {

if (stepObj.status === STATUSES.FAILED) {
let stepMessage;
if (step.err) {
if (step.test?.err) {
stepMessage = `${PREFIX_BUG}: ${JSON.stringify(
step.test.err,
null,
2,
)}`;
} else if (step.err) {
stepMessage = `${PREFIX_BUG}: ${
step.err.stack ? step.err.stack : JSON.stringify(step.err)
}`;
Expand Down

0 comments on commit 7ac279c

Please sign in to comment.