testing
pixi-wheels / testing
testing
Classes#
| Class | Description |
|---|---|
| FakeTicker | Minimal 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. |
| HeadlessPointerSkin | A pointer skin that is an empty container. Pin-to-tip length is fixed. |
Interfaces#
| Interface | Description |
|---|---|
| CapturedEvent | - |
| TestWheelHandle | - |
| TestWheelOptions | - |
Functions#
| Function | Description |
|---|---|
| captureEvents | Record the named events in order. Returns the growing log. |
| createTestWheel | Build 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. |
| expectPointerOn | Throw unless the pointer of ring (default main) is on section id. |
| seededRng | Mulberry32: a small deterministic PRNG for tests. |
References#
HeadlessRingSkin#
Re-exports HeadlessRingSkin