Skip to content

Commit

Permalink
fix: joi args in step (#4084)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Dec 23, 2023
1 parent b4b6dd8 commit 0de0783
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/command/workers/runTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,19 @@ function initializeListeners() {
const _steps = [];

for (step of steps) {
const _args = [];

if (step.args) {
for (const arg of step.args) {
arg && arg.$_root ? _args.push(JSON.stringify(arg).slice(0, 300)) : _args.push(arg);
}
}

_steps.push({
actor: step.actor,
name: step.name,
status: step.status,
args: step.args,
agrs: _args,
startedAt: step.startedAt,
startTime: step.startTime,
endTime: step.endTime,
Expand Down

0 comments on commit 0de0783

Please sign in to comment.