createTestTable
createTestTable<
G>(game,options?):Promise<TestTable<G>>
Defined in: testing/test-table.ts:218
Creates a table for testing game rules without a server or sockets.
const t = await createTestTable(ticTacToe, { players: 2 });await t.act(0, 'place', { cell: 4 });expect(t.state.board[4]).toBe('X');Type Parameters
Section titled “Type Parameters”G extends AnyGame
Parameters
Section titled “Parameters”G
options?
Section titled “options?”Returns
Section titled “Returns”Promise<TestTable<G>>
