testing
pixi-reels / testing
testing
Classes
| Class | Description |
|---|---|
| FakeTicker | Minimal drop-in replacement for PIXI.Ticker for tests. |
| HeadlessSymbol | A ReelSymbol implementation that does no rendering at all. |
Interfaces
| Interface | Description |
|---|---|
| TestReelSetHandle | - |
| TestReelSetOptions | - |
Functions
| Function | Description |
|---|---|
| captureEvents | Record every occurrence of the given events in order for assertion. |
| countSymbol | Count how many times a given symbol appears in the visible grid. Handy for scatter/wild-count assertions. |
| createTestReelSet | Build a headless ReelSet wired to a FakeTicker. Ideal for mechanic tests. |
| expectGrid | Assert that the current visible grid equals expected. |
| spinAndLand | Deterministically run a spin to a target grid. |