Skip to content

backend: add coverage for platform link features (POST/PUT/DELETE /me/links) #5

Description

@ShantKhatri

Summary

Add small test coverage for create/update/delete platform link routes in apps/backend/src/routes/profiles.ts.

Tasks

  • create tests verifying POST /api/profiles/me/links fails with invalid body and succeeds with valid body calling createLinkSchema.
  • add test for PUT /api/profiles/me/links/:id when link not found returns 404.
  • add test for DELETE /api/profiles/me/links/:id when existing link deletion returns 204.

Acceptance Criteria

  • total 3+ test cases added and passing.
  • this covers safeParse validation and typed responses.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions