gendesign/frontend/src/components/ui
Light1YT cdb6035e39
Some checks failed
CI / changes (push) Successful in 6s
CI / backend-tests (push) Has been skipped
Deploy / deploy (push) Blocked by required conditions
CI / changes (pull_request) Successful in 5s
CI / backend-tests (pull_request) Has been skipped
Deploy / changes (push) Successful in 6s
Deploy / build-backend (push) Has been skipped
Deploy / build-worker (push) Has been skipped
Deploy / build-frontend (push) Has been cancelled
chore(frontend): add vitest runner + WKT parser unit tests
- Wire vitest (jsdom, globals, @ alias->src, jest-dom matchers); add
  test / test:watch scripts and dev deps (vitest 2.1, @vitejs/plugin-react,
  jsdom, @testing-library/{react,dom,jest-dom,user-event}); regen lockfile
  (both package.json + package-lock.json, alpine-musl binaries verified).
- Revive 4 orphaned tests: jest.fn->vi.fn (Drawer); fix outdated subtitle
  DOM assertion (HeadlineBar); drop stale jest setup comments.
- Extract WKT->GeoJSON parser (wktToGeometry/splitTopLevel/parseRing) from
  MarketLayers into src/lib/wkt.ts (pure, behavior-preserving refactor) +
  add EWKT SRID-prefix tolerance; cover with src/lib/__tests__/wkt.test.ts
  (16 cases incl. lon/lat order, holes, multipolygon, EWKT, garbage->null).

57 tests green; type-check green; build green. CI wiring is a devops follow-up.

Refs #999.
2026-06-07 16:46:27 +05:00
..
__tests__ chore(frontend): add vitest runner + WKT parser unit tests 2026-06-07 16:46:27 +05:00
Badge.tsx feat(sf-fe-a3): UI primitives — HeadlineBar + Badge + Drawer (#341) 2026-05-17 22:06:53 +00:00
Drawer.tsx feat(sf-fe-a3): UI primitives — HeadlineBar + Badge + Drawer (#341) 2026-05-17 22:06:53 +00:00
EmptyState.tsx refactor(frontend): extract SectionLabel + EmptyState + adminStyles shared (#132) 2026-05-14 23:55:38 +03:00
HeadlineBar.tsx feat(sf-fe-a3): UI primitives — HeadlineBar + Badge + Drawer (#341) 2026-05-17 22:06:53 +00:00
SectionLabel.tsx refactor(frontend): extract SectionLabel + EmptyState + adminStyles shared (#132) 2026-05-14 23:55:38 +03:00