(event: LearningEvent['event'], name: string, extra: Partial<LearningEvent> = {})
| 30 | |
| 31 | describe('learning ledger aggregation — the metrics dashboard', () => { |
| 32 | const ev = (event: LearningEvent['event'], name: string, extra: Partial<LearningEvent> = {}): LearningEvent => |
| 33 | ({ ts: `2026-06-25T00:00:0${name.length}Z`, event, name, ...extra }); |
| 34 | it('aggregates counts, promotion rate, and avg confidence', () => { |
| 35 | const events: LearningEvent[] = [ |
| 36 | ev('capture', 'a', { confidence: 80 }), |
no outgoing calls
no test coverage detected