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]>
27 lines
829 B
JSON
27 lines
829 B
JSON
{
|
|
"name": "news-bridge",
|
|
"version": "1.0.0",
|
|
"description": "WordPress REST API bridge for the news platform",
|
|
"type": "module",
|
|
"main": "dist/server.js",
|
|
"scripts": {
|
|
"dev": "tsx watch src/server.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/server.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "npm run build && node --test dist/services/ranking.test.js dist/services/aggregator-mapper.test.js",
|
|
"test:coverage": "npm run build && node --experimental-test-coverage --test dist/services/ranking.test.js dist/services/aggregator-mapper.test.js"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cors": "^9.0.1",
|
|
"@fastify/rate-limit": "^9.1.0",
|
|
"fastify": "^4.28.1",
|
|
"ioredis": "^5.4.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.0",
|
|
"tsx": "^4.15.0",
|
|
"typescript": "^5.4.5"
|
|
}
|
|
}
|