brackt/app/services/__tests__
Claude be9f30753f
Refine Discord webhook scoring notifications (fixes #180, #181)
- Filter scored matches to only show matchups where a manager scores
  Brackt points (winner drafted) or has a team eliminated (loser drafted);
  matches with no manager involvement are suppressed entirely.
- Escape Discord markdown characters (_*~`|\) in team names and usernames
  to prevent formatting issues (e.g. double-underscore names causing
  unintended underlines).
- Replace full standings with a "Standings Changes" section that shows
  only teams whose points changed, plus any teams whose rank shifted as a
  result, with ↑N / ↓N indicators for rank movement.
- Pass previousRanks map from scoring-calculator to the notification so
  rank-displaced teams (who didn't score points themselves) are included.
- Update test webhook in league settings to demonstrate rank changes and
  a sample scored match.
- Update all discord service tests to cover the new filtering, escaping,
  and standings-change behaviour.

https://claude.ai/code/session_01FciwfdG9Sfr5ZrXUHPeB18
2026-03-19 21:54:29 +00:00
..
bracket-simulator.test.ts feat: implement Expected Value System with ICM probability calculator 2025-11-17 22:19:46 -08:00
discord.test.ts Refine Discord webhook scoring notifications (fixes #180, #181) 2026-03-19 21:54:29 +00:00
ev-calculator.test.ts fix: align ev-calculator tests with decimal (0-1) probability format 2026-02-14 23:26:32 -08:00
icm-calculator.test.ts fix: correct test expectations for ICM edge cases and duplicate text queries 2026-02-17 14:24:07 -08:00
probability-engine.test.ts feat: implement Expected Value System with ICM probability calculator 2025-11-17 22:19:46 -08:00
probability-updater.test.ts feat: progressive floor scoring for playoff brackets (#100) 2026-03-10 10:27:58 -07:00