Fix noisy and broken tests.
This commit is contained in:
parent
8c3663e01b
commit
005a5a82a7
2 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue