buildResult function presentation
Last updated: 2026-03-05T10:53:28.864Z
Metrics
LOC: 16
Complexity: 3
Params: 0
Signature
buildResult(): : ReplayResult
Source Code
function buildResult(): ReplayResult {
return {
status: stepResults.some((r) => r.result.status === "failed")
? "failed"
: "completed",
totalSteps: flow?.steps.length ?? 0,
successCount: stepResults.filter((r) => r.result.status === "success")
.length,
skippedCount: stepResults.filter((r) => r.result.status === "skipped")
.length,
failedCount: stepResults.filter((r) => r.result.status === "failed")
.length,
durationMs: Date.now() - startedAt,
stepResults,
};
}