Testing
Decode fixtures, draw-list snapshots, golden PNGs, and ground truth.
- Decode fixtures (
fixtures/decode/) — exact JSON assertions from committed blueprint strings. - Draw-list snapshots (
fixtures/drawlist/) —planDrawListoutput viaserializeDrawList(); reviewable text diffs. - 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. - 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