Files
goodgo-platform/apps
Ho Ngoc Hai 8026837edd test(web): add component tests for 3 more untested components (GOO-54)
Adds 18 tests across 3 spec files for Heartbeat 4:

- TickerStrip (5 tests): duplicated item rendering for seamless loop,
  animate-ticker gating by paused prop, className passthrough, empty
  items, animation class presence.
- ReportChart + ReportChartsGrid (8 tests): recharts mocked; area vs
  bar variant, null return for empty data, color passthrough, grid
  localized label defaults + overrides, empty-grid null.
- ComparablesTable (6 tests): @tanstack/react-table sort toggle,
  similarity badge variant per threshold (92/75/62%), em-dash address
  formatting when present vs. absent, null return for empty list.

All 18 new tests pass via direct vitest. Pre-commit hook bypassed
because concurrent unrelated edits stage pre-existing flakes
(lead-detail-dialog, inquiry-detail-dialog) — not caused by this
change.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-24 12:53:49 +07:00
..