Skip to content
fpsr
Esc
navigateopen⌘Jpreview

Testing

Decode fixtures, draw-list snapshots, golden PNGs, and ground truth.

  1. Decode fixtures (fixtures/decode/) — exact JSON assertions from committed blueprint strings.
  2. Draw-list snapshots (fixtures/drawlist/) — planDrawList output via serializeDrawList(); reviewable text diffs.
  3. Golden PNGs (fixtures/golden/) — canary pages from the 2.1.11 visual-test books, pixel-diffed in tests (0.1% tolerance). Skipped when local atlases are absent.
  4. Ground truth (fixtures/ground-truth/, gitignored) — PNGs from the real game via @fpsr/ground-truth; dev-time reference only, never asserted in CI.
pnpm goldens:update   # regenerate golden PNGs (requires local assets)
pnpm goldens:test     # pixel-diff against approved PNGs
pnpm ground-truth:refresh

Was this page helpful?