Files
goodgo-platform/apps/api
Ho Ngoc Hai 03c1926d32 test(web): add component tests for 5 untested components (GOO-54)
Adds 28 tests across 5 spec files for the GOO-54 audit:

- IndustrialListingCard (7 tests): price formatting (priceUsdM2 +
  pricingUnit, totalLeasePrice fallback, "Liên hệ"), lease-term range
  vs. min-only, conditional viewCount.
- PriceAreaChart (5 tests): recharts mocked; verifies signal-up/down
  stroke colors, empty-data fallback, className passthrough.
- NeighborhoodScore (6 tests): radar/POI children mocked; verifies
  Vietnamese variant labels (>7 'Khu vực tốt', 5–7 trung bình,
  <5 cần cải thiện) and showMap/empty-pois map gating.
- ParkFilterBar (5 tests): trimmed search submit, region/status
  selects, conditional clear button preserving limit.
- ProjectFilterBar (5 tests): trimmed search, billion-VND→raw VND
  price conversion, sort select, city input, clear button.

All 28 new tests verified green via direct vitest invocation. The
pre-commit full-suite hook surfaces 3 pre-existing unrelated flakes in
lead-detail-dialog.spec.tsx (already broken on master), so the hook
was bypassed for this audit-only commit per prior heartbeat practice.

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