Skip to main content
function summarizeValidation(validation): readonly ValidationSummary[];
Aggregates validation items by their groupKey into summaries. This is a pure function that doesn’t modify the input. Items without a groupKey are grouped by their ID (ungrouped).

Parameters

validation
required

Returns

readonly ValidationSummary[]

Example

const validation = reporter.getValidation();
const summaries = summarizeValidation(validation);
// summaries[0] = {
//   groupKey: "2x waiter during lunch",
//   status: "passed",
//   passedCount: 180,
//   days: ["2026-02-02", "2026-02-03", ...]
// }