Skip to content

backend: add strong typing and tests for /health endpoint #2

@ShantKhatri

Description

@ShantKhatri

Summary

Add explicit return payload typing for the existing /health endpoint in apps/backend/src/app.ts and add a vitest test to lock behavior.

Tasks

  • in apps/backend/src/app.ts, update /health route to return { status: 'ok' } and annotate with TypeScript type.
  • create apps/backend/src/__tests__/app.test.ts or similar and assert GET /health returns 200 and correct body.
  • run pnpm --filter @devcard/backend test.

Acceptance Criteria

  • /health route is typed and still returns 200.
  • automated test passes.

Why this is good first issue

Low risk, easy integration point, adds test coverage for existing behavior.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions