Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed May 17, 2024
1 parent 0d3b1fd commit b69ed9d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,12 @@ module.exports = (passedConfig) => {

if (stepObj.status === STATUSES.FAILED) {
let stepMessage;
if (step.test && step.test.err) {
stepMessage = `${PREFIX_BUG}: ${
JSON.stringify(step.test.err, null, 2)
}`;
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 b69ed9d

Please sign in to comment.