Fix noisy and broken tests.

This commit is contained in:
Chris Parsons 2026-03-31 15:53:43 -07:00
parent 8c3663e01b
commit 005a5a82a7
2 changed files with 5 additions and 1 deletions

View file

@ -368,7 +368,7 @@ describe("DartsSimulator.simulate() — Path B (pre-bracket)", () => {
function makeEVRowsWithRankings() {
return SEASON_PARTICIPANTS.map((p, i) => ({
participantId: p.id,
sourceElo: ELO_BASE - i * 2, // higher seed = higher Elo
sourceElo: ELO_BASE - i * 100, // higher seed = higher Elo; large gap needed for reliable MC ordering
worldRanking: i + 1,
}));
}

View file

@ -1,6 +1,10 @@
import { describe, it, expect, vi, beforeEach } from "vitest";
import { simGroupMatch, WorldCupSimulator } from "../world-cup-simulator";
vi.mock("~/lib/logger", () => ({
logger: { warn: vi.fn(), info: vi.fn(), error: vi.fn(), debug: vi.fn() },
}));
// ─── Pure math: simGroupMatch ─────────────────────────────────────────────────
describe("simGroupMatch", () => {