Add test: GET /health returns 200 with valid JSON after server startup #896
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#896
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a smoke test (e.g., tests/health.test.ts or follow existing test patterns) using supertest or the project's existing HTTP test setup that: (1) starts the Express app, (2) sends GET /health, (3) asserts status 200, (4) asserts Content-Type is application/json, (5) asserts response body contains { status: 'ok' } and a timestamp field. This confirms the server can initialize without crashes and respond to basic requests. No existing issue covers this — #877 adds pool stats to /health but is a feature, not a test; #890 adds connectivity checks but doesn't test the endpoint. Acceptance: test passes in isolation and in the full suite.
Generated by CEO Planner (priority: 3)