test(fx): source-scan BG_DEFAULTS.nutColor fixture (Creed r2)

test 11 now extracts the real nutColor from screen.js via regex and
pins it against a literal ('#f5f3f0').  Three-layer guard:
  1. guard: BG_DEFAULTS literal is present in screen.js
  2. guard: nutColor key is extractable
  3. literal-pin: extracted value == '#f5f3f0' → fail loudly if
     production drifts (verified: mutating screen.js to '#deadf5'
     makes the test fail on the pin assertion; revert confirmed clean)
Fixture and fallback assertion both use PROD_NUT_COLOR (the extracted
value), so they track production automatically.

panel_controls stub updated: added _applyBloom to the createFx stub
(Toby r1 added _applyBloom to the return set; stub was one short).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014uZ169yfoFYArXz962g7KW
This commit is contained in:
byrongamatos
2026-09-05 16:07:37 +02:00
co-authored by Claude Sonnet 4.6
parent 1f3bde73d1
commit 4a45ed8782
2 changed files with 27 additions and 9 deletions
@@ -127,6 +127,7 @@ function loadHighway3dStatics() {
_timingHex() { return 0x22ff88; },
_sparkBurst() {},
_sparkUpdate() {},
_applyBloom() {},
_bloomEnsure() { return null; },
}),
};