/api/health has no route test
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nextjs, typescript
Research direction
Read web/src/app/api/health/route.ts:5-12 and locate the project’s route test conventions. Add tests with a fake snapshotHealth() covering fresh and stale responses, including Cache-Control: no-store on both; use an exported cache reset or injected clock to control the 60-second cache. Done when all four response assertions pass.
Written by the indexing model from the issue text.
Description
From the 2026-11-06 web audit (W35). web/src/app/api/health/route.ts:5-12 has no test, and uptime monitoring depends on its 200/503 split. It caches the snapshot in module scope for 60 s.
Fix. Route test with a fake snapshotHealth(): fresh gives 200, stale gives 503, both Cache-Control: no-store. Export a resetHealthCache() for tests or inject Date.now. Size S.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CDVolvik/everloot
-
addon bug night-shift
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
night-shift web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in CDVolvik/everloot
Similar issues
-
content triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
tensorflow/tfjs#8754 ·
-
tool-submission
Difficulty 1/5 Under an hour Newbie friendliness 83/100
BraveOPotato/NoSignups#2348 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
code-yeongyu/oh-my-openagent#12784 ·
Maintainers usually reply within 1 day
-
external-issue to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
Maintainers usually reply within 1 day