diff --git a/lib/command/workers/runTests.js b/lib/command/workers/runTests.js index 6456dd1f7..430a7b450 100644 --- a/lib/command/workers/runTests.js +++ b/lib/command/workers/runTests.js @@ -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 = []; @@ -151,6 +151,7 @@ function initializeListeners() { endTime: step.endTime, finishedAt: step.finishedAt, duration: step.duration, + err, }); }