PR pixi-reels

testing

pixi-reels


pixi-reels / testing

testing

Classes

ClassDescription
FakeTickerMinimal drop-in replacement for PIXI.Ticker for tests.
HeadlessSymbolA ReelSymbol implementation that does no rendering at all.

Interfaces

InterfaceDescription
TestReelSetHandle-
TestReelSetOptions-

Functions

FunctionDescription
captureEventsRecord every occurrence of the given events in order for assertion.
countSymbolCount how many times a given symbol appears in the visible grid. Handy for scatter/wild-count assertions.
createTestReelSetBuild a headless ReelSet wired to a FakeTicker. Ideal for mechanic tests.
expectGridAssert that the current visible grid equals expected.
spinAndLandDeterministically run a spin to a target grid.