Skip to content

Commit 8c2212b

Browse files
committed
fix: add err object to step
1 parent c78345d commit 8c2212b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/command/workers/runTests.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ function initializeListeners() {
132132
duration: test.duration || 0,
133133
err,
134134
parent,
135-
steps: test.steps ? simplifyStepsInTestObject(test.steps) : [],
135+
steps: test.steps ? simplifyStepsInTestObject(test.steps, err) : [],
136136
};
137137
}
138138

139-
function simplifyStepsInTestObject(steps) {
139+
function simplifyStepsInTestObject(steps, err) {
140140
steps = [...steps];
141141
const _steps = [];
142142

@@ -151,6 +151,7 @@ function initializeListeners() {
151151
endTime: step.endTime,
152152
finishedAt: step.finishedAt,
153153
duration: step.duration,
154+
err,
154155
});
155156
}
156157

0 commit comments

Comments
 (0)