gronod
|
7d3e6e6a47
|
test: add integration and unit tests for dashboard, emby, sonarr, radarr, sabnzbd routes
Build and Push Docker Image / build (push) Successful in 39s
Docs Check / Markdown lint (push) Successful in 45s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m12s
CI / Security audit (push) Successful in 1m30s
CI / Tests & coverage (push) Failing after 1m39s
Docs Check / Mermaid diagram parse check (push) Successful in 1m59s
- tests/unit/dashboard.test.js: 58 unit tests covering all 12 pure helper
functions in dashboard.js (sanitizeTagLabel, tagMatchesUser, getCoverArt,
extractAllTags, extractUserTag, getImportIssues, getSonarrLink, getRadarrLink,
canBlocklist, extractEpisode, gatherEpisodes, buildTagBadges)
- tests/integration/dashboard.test.js: 35 integration tests for
/user-downloads (SAB+Sonarr, SAB+Radarr, qBit, showAll, paused queue,
history matching, importIssues, wrong-user filtering), /status (admin guard,
webhook check, failure handling), /webhook-metrics, /cover-art (all
validation/proxy paths), /blocklist-search (guards, Sonarr, Radarr, failure)
- tests/integration/emby.test.js: 13 integration tests covering all 4 Emby
routes (sessions, users, users/:id, session/:id/user) with auth guard,
happy path, and upstream failure cases
- tests/integration/arrRoutes.test.js: 64 integration tests for Sonarr +
Radarr (queue, history, series/movies, notifications CRUD, /test, /schema,
/sofarr-webhook create+update+missing-config+failure) and SABnzbd (queue,
history with custom params)
- vitest.config.js: raise global coverage thresholds (statements/functions/
lines 20->55, branches 8->40) to reflect improved coverage
(62.5% stmts, 42.6% branches, 64.1% funcs, 65.6% lines)
- tests/README.md: document new test files and update coverage table
|
2026-05-20 21:37:57 +01:00 |
|