Files
news-platform/frontend/package.json
Maria PapoilaandPaperclip 3d4b129b4c
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
BIT-15752: Add unit tests across writer-pipeline, bridge, and frontend
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

26 lines
649 B
JSON

{
"name": "news-platform-frontend",
"type": "module",
"version": "0.1.0",
"description": "Astro SSR frontend for multi-domain sports news platform",
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"test": "node --import tsx/esm --test src/lib/*.test.ts",
"test:coverage": "node --experimental-test-coverage --import tsx/esm --test src/lib/*.test.ts"
},
"dependencies": {
"@astrojs/node": "^10.0.3",
"astro": "^6.0.8"
},
"devDependencies": {
"@types/node": "^20.19.39",
"tsx": "^4.21.0"
}
}