Skip to content

Commit 0de0783

Browse files
authored
fix: joi args in step (#4084)
1 parent b4b6dd8 commit 0de0783

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/command/workers/runTests.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,19 @@ function initializeListeners() {
141141
const _steps = [];
142142

143143
for (step of steps) {
144+
const _args = [];
145+
146+
if (step.args) {
147+
for (const arg of step.args) {
148+
arg && arg.$_root ? _args.push(JSON.stringify(arg).slice(0, 300)) : _args.push(arg);
149+
}
150+
}
151+
144152
_steps.push({
145153
actor: step.actor,
146154
name: step.name,
147155
status: step.status,
148-
args: step.args,
156+
agrs: _args,
149157
startedAt: step.startedAt,
150158
startTime: step.startTime,
151159
endTime: step.endTime,

0 commit comments

Comments
 (0)