Skip to content

replayFixture

replayFixture<G>(game, fixture, options?): Promise<TestTable<G>>

Defined in: testing/fixture.ts:29

Replays a fixture into a live test table at its last entry: checks the game and its version, replays every entry exactly (ADR 0006), then checks expect if present. Throws if anything differs. The table keeps running: act on it, advance its clock (it starts at the last entry's time) and assert, like any createTestTable table.

G extends AnyGame

G

Fixture

Wallet

Promise<TestTable<G>>