BIT-15752: Add unit tests — 87 new tests, 95%+ coverage on writer-pipeline #7

Merged
spark merged 2 commits from test/BIT-15752-add-unit-tests into main 2026-05-06 12:17:29 +01:00
2 Commits
Author SHA1 Message Date
Paperclip CI Autopilot 98a05fe946 chore(ci): retrigger checks for PR #7
Tests / writer-pipeline tests (push) Successful in 33s
Tests / bridge tests (push) Successful in 22s
Tests / frontend lib tests (push) Successful in 28s
Tests / writer-pipeline tests (pull_request) Successful in 21s
Tests / bridge tests (pull_request) Successful in 21s
Tests / frontend lib tests (pull_request) Successful in 27s
2026-05-06 11:13:54 +00:00
Maria PapoilaandPaperclip 3d4b129b4c BIT-15752: Add unit tests across writer-pipeline, bridge, and frontend
Tests / writer-pipeline tests (push) Failing after 1s
Tests / bridge tests (push) Failing after 1s
Tests / frontend lib tests (push) Failing after 1s
Tests / writer-pipeline tests (pull_request) Successful in 52s
Tests / bridge tests (pull_request) Successful in 25s
Tests / frontend lib tests (pull_request) Successful in 29s
87 new tests covering previously untested pure functions:
- writer-pipeline: token-metrics, store (canonicalUrl/itemId/upsertItem/shortlist), config-load
- bridge: ranking (freshness/relevance/rank/filter/take_top_n), aggregator-mapper
- frontend/lib: format, ui-i18n, public-origin

Adds test:coverage scripts (node --experimental-test-coverage) and Gitea
CI workflow. writer-pipeline now reports 95.91% line coverage.

Co-Authored-By: Paperclip <[email protected]>
2026-04-29 01:08:41 +00:00