brackt/app/services/simulations/__tests__
Claude 95f895a715
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m3s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m22s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Fix three defects found reviewing the auto racing sim change
- The settled-season branch only ranked drivers that had a standings row, so
  with fewer than eight rows the trailing placement columns were empty and
  step 9's residual normalization dumped a full 1.0 onto whichever driver came
  first. Ten drivers with five standings rows gave d1 probSecond, probSixth,
  probSeventh and probEighth all at 1. Removed the branch: the in-season path
  awards no points when no races remain, so it already ranks the final
  standings, and it ranks the whole field.

- The unpriced-driver floor was taken from a distribution normalized over the
  priced subset alone. With one priced driver devigPower returns [1], so every
  unpriced driver was seeded at 1 and the field came back flat — a lone -500
  favourite fell to 0.117. Floor on the implied scale and devig the whole
  field instead, keeping the 1/N fallback when a book has a single price and
  no tail to anchor to.

- hasRaceRun treated a race as run at the green flag, so remainingRaces hit 0
  the moment the finale started and the pre-race leader was published as
  champion at 100% from standings that did not include that race. Require the
  race to have had time to finish.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TUcV7KenckF893zQ46EDXt
2026-08-17 00:50:30 +00:00
..
afl-simulator.test.ts Add projected-wins input mode to admin Elo Ratings page (#306) 2026-04-17 12:40:08 -07:00
auto-racing-simulator.test.ts Fix three defects found reviewing the auto racing sim change 2026-08-17 00:50:30 +00:00
brackt-simulator.test.ts Add Brackt as a league-private meta-sport (#200) (#377) 2026-05-04 20:31:44 -07:00
college-hockey-simulator.test.ts Fix college hockey bracket resolution (#396) 2026-05-08 12:29:39 -07:00
cs-major-simulator.test.ts Unify majors: score once, fan out across windows + tennis bracket EV 2026-06-22 20:32:22 -07:00
darts-simulator.test.ts Fix simulator correctness bugs and reduce test iteration counts (#61) 2026-05-31 17:39:43 +00:00
epl-simulator.test.ts Fix simulator correctness bugs and reduce test iteration counts (#61) 2026-05-31 17:39:43 +00:00
golf-simulator.test.ts Add not-participating exclusion support for event results (#446) 2026-05-19 11:13:32 -07:00
input-policy.test.ts claude/fix-lint-errors-n48594 (#111) 2026-06-26 07:26:55 +00:00
llws-simulator.test.ts Add LLWS 20-team double-elimination bracket 2026-08-03 18:06:56 +00:00
manifest.test.ts claude/clever-archimedes-dvye42 (#110) 2026-06-26 05:16:54 +00:00
mlb-simulator.test.ts Fix MLB simulator: projected wins drive seeding, perf fix, + surface simulate errors (#65) 2026-06-01 20:50:03 +00:00
mls-simulator.test.ts Add MLS standings sync and fix simulator conference resolution (#423) 2026-05-14 15:39:40 -07:00
nba-simulator.test.ts fix: NBA play-in bracket advancement bugs (#292) 2026-04-12 22:25:32 -07:00
ncaa-football-simulator.test.ts claude/clever-archimedes-dvye42 (#110) 2026-06-26 05:16:54 +00:00
ncaam-simulator.test.ts Upgrade NCAA preseason simulators (#419) 2026-05-12 22:26:25 -07:00
ncaaw-simulator.test.ts Upgrade NCAA preseason simulators (#419) 2026-05-12 22:26:25 -07:00
nfl-simulator.test.ts Add NFL season + playoffs Monte Carlo simulator (#272) 2026-04-07 09:39:34 -04:00
nhl-simulator.test.ts claude/probability-config-review-1tdolw (#119) 2026-06-30 23:24:48 +00:00
nll-simulator.test.ts Add NLL box lacrosse simulator implementation plan and preseason-draftability guidance (#417) 2026-05-12 14:22:34 -07:00
runner.test.ts claude/fix-lint-errors-n48594 (#111) 2026-06-26 07:26:55 +00:00
simulator-config.test.ts Fix college hockey bracket resolution (#396) 2026-05-08 12:29:39 -07:00
snooker-simulator.test.ts Add snooker bracket simulator and Elo ratings admin UI, fixes #119 2026-03-23 08:24:28 -07:00
tennis-simulator.test.ts Unify majors: score once, fan out across windows + tennis bracket EV 2026-06-22 20:32:22 -07:00
ucl-simulator.test.ts Fix oxlint warnings: no-shadow, consistent-function-scoping, no-non-null-assertion, and others (#196) 2026-03-21 10:59:51 -07:00
wnba-simulator.test.ts Fix simulator brackets: NHL bracket-aware mode, MLB/NBA/WNBA sourceElo support (#358) 2026-04-30 08:33:57 -07:00
world-cup-simulator.test.ts Reflect group stage in World Cup sim; seed R32 from real 2026 bracket 2026-06-23 12:15:45 -07:00