Skip to content

Commit

Permalink
fix: add err object to step
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Nov 7, 2023
1 parent c78345d commit 8c2212b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/command/workers/runTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ function initializeListeners() {
duration: test.duration || 0,
err,
parent,
steps: test.steps ? simplifyStepsInTestObject(test.steps) : [],
steps: test.steps ? simplifyStepsInTestObject(test.steps, err) : [],
};
}

function simplifyStepsInTestObject(steps) {
function simplifyStepsInTestObject(steps, err) {
steps = [...steps];
const _steps = [];

Expand All @@ -151,6 +151,7 @@ function initializeListeners() {
endTime: step.endTime,
finishedAt: step.finishedAt,
duration: step.duration,
err,
});
}

Expand Down

0 comments on commit 8c2212b

Please sign in to comment.