Task
Implement end-to-end testing setup and basic coverage:
- Install Jest and Supertest as devDependencies.
- Add a health check API endpoint (e.g.,
GET /api/health) to return application health status { status: 'ok' }.
- Write an automated test with Jest/Supertest to verify the health endpoint returns a successful response.
- Confirm tests run successfully via
npm test.
Acceptance Criteria:
- App exposes a
/api/health endpoint that returns health status.
- Project is configured for Jest and Supertest and contains its first passing E2E test.
This is the first step toward feature-parity API endpoint test coverage.
Task
Implement end-to-end testing setup and basic coverage:
GET /api/health) to return application health status{ status: 'ok' }.npm test.Acceptance Criteria:
/api/healthendpoint that returns health status.This is the first step toward feature-parity API endpoint test coverage.