Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122import { describe, expect, it } from "vitest";import { runDemoMatch } from "./index.js";
describe("scripted Economancy CLI", () => { it("runs the shared host through one complete day", async () => { const output = await runDemoMatch(); expect(output.finalView).toMatchObject({ matchId: "demo-match", state: { round: 2, day: 2, phase: { kind: "income" }, armies: [ { player: "alice", cards: ["sorcerers_stipend", "board_of_monopoly"] }, { player: "bob", cards: ["sorcerers_stipend"] }, ], }, }); expect(output.results.every((result) => result.kind === "accepted")).toBe(true); });});