mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 00:41:09 +02:00
5 test suites covering the critical Companion Brain systems: Event Bus (7 tests): typed delivery, onAny, unsubscribe, off(), error isolation between handlers, multiple handlers Tool Executor (8 tests): valid execution, unknown tool, missing required params, string→number coercion, invalid coercion, enum validation, error catching, optional params Goal Tracker (6 tests): create from template, pause/resume, soft delete, event-driven increment, filter matching, paused goals not tracked Streak Tracker (5 tests): event-driven seeding, no double-count same day, filter correctness (water only), water event tracking, independent multi-streak tracking Correlation Engine (3 tests): insufficient data returns empty, positive correlation detection, cross-module only filtering Also fixes race condition in streaks.ts markActive() — concurrent events could both try to seed the same streak, causing ConstraintError. Now caught with try/catch. All 29 tests passing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| nutriphi | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||
| zitare/packages/content | ||