houserules/packages
Joey Yakimowich-Payne bb86bed461
test(chess/ui): add PreviewPane + BoardDiagramView unit tests (T17 gap fill)
F1 plan-compliance audit flagged these two test files as missing
acceptance-criteria deliverables for T17. This commit closes the gap.

PreviewPane.test.tsx (3 scenarios, react-dom/server harness):
- renders three role=tab buttons with Narrative/JSON/Board labels
- default-active tab is Narrative (aria-selected=true, others hidden)
- sub-views are memoized — identical rendered markup when the same
  descriptor reference is passed twice

BoardDiagramView.test.tsx (4 scenarios):
- empty descriptor renders No board effect placeholder and zero SVG
- on-moved-onto-square with {kind:squares, squares:[28,35]} renders
  data-testid=highlight-28 and highlight-35 yellow overlays
- add-aura with radius=2 renders data-testid=aura-ring SVG circle
- nested trigger traversal — on-capture containing on-moved-onto-square
  correctly surfaces the inner filters squares for highlighting

Matches the renderToStaticMarkup pattern used by
ParamField.snapshot.test.tsx so the harness stays consistent across
the package. No component source touched.
2026-04-21 19:09:33 -06:00
..
chess test(chess/ui): add PreviewPane + BoardDiagramView unit tests (T17 gap fill) 2026-04-21 19:09:33 -06:00
rete refactor(rete): use asEntityId for AGG_FACT sentinel id 2026-04-19 16:49:50 -06:00
server test(server): add wire-parity fixtures for 7 new trigger primitive kinds 2026-04-21 16:58:17 -06:00