harb/services/ponder/tests
openhands 16dc1827c9 fix: Ponder: add test infrastructure + coverage for helpers (target 95%) (#287)
- vitest.config.ts: add statements/functions/branches thresholds alongside
  lines so the coverage gate catches regressions in all four dimensions
- tests/stats.test.ts: replace weak "> 0n" / "toBeDefined()" assertions with
  exact expected values derived from the ring buffer algebra:
  - hour-advanced path: mintedLastWeek=480n, mintedLastDay=220n,
    burnedLastWeek=240n, burnedLastDay=110n, mintNextHourProjected=68n,
    burnNextHourProjected=34n, netSupplyChangeDay=110n,
    netSupplyChangeWeek=240n
  - same-hour projection path: mintNextHourProjected=140n (elapsed-seconds
    scaling verified), burnNextHourProjected=0n (medium=0 fallback path)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 23:28:25 +00:00
..
__mocks__ fix: Ponder: add test infrastructure + coverage for helpers (target 95%) (#287) 2026-02-25 22:53:01 +00:00
abi.test.ts fix: Ponder: add test infrastructure + coverage for helpers (target 95%) (#287) 2026-02-25 22:53:01 +00:00
stats.test.ts fix: Ponder: add test infrastructure + coverage for helpers (target 95%) (#287) 2026-02-25 23:28:25 +00:00
version.test.ts fix: Ponder: add test infrastructure + coverage for helpers (target 95%) (#287) 2026-02-25 22:53:01 +00:00