pixi-wheels

testing

pixi-wheels


pixi-wheels / testing

testing

Classes#

ClassDescription
FakeTickerMinimal drop-in for PIXI.Ticker in tests. Exposes the surface the engine uses (add, remove, deltaMS) plus tick(ms) and tickFor(ms) to advance time by hand, so a whole spin runs in a unit test with no requestAnimationFrame and no wall clock.
HeadlessPointerSkinA pointer skin that is an empty container. Pin-to-tip length is fixed.

Interfaces#

InterfaceDescription
CapturedEvent-
TestWheelHandle-
TestWheelOptions-

Functions#

FunctionDescription
captureEventsRecord the named events in order. Returns the growing log.
createTestWheelBuild a headless wheel on a fake ticker: no renderer, no textures, no DOM. The spin lifecycle, planner, pointer ticks and events all run for real; only the pixels are missing.
expectPointerOnThrow unless the pointer of ring (default main) is on section id.
seededRngMulberry32: a small deterministic PRNG for tests.

References#

HeadlessRingSkin#

Re-exports HeadlessRingSkin