Skip to content

Add end-to-end API test suite using Supertest #601

Description

@Abdulazeem-code

Description

Current tests are mostly unit tests or test isolated modules. There are no end-to-end tests that verify the full request lifecycle through middleware, validation, and response formatting.

Proposed Solution

Create an E2E test suite using Supertest that boots the Express app and tests critical flows: registration, federation lookup, webhook CRUD, and admin operations.

Acceptance Criteria

  • E2E test file created covering registration flow
  • Federation name and ID lookups tested
  • Webhook create/list/delete flow tested
  • Admin block and export flows tested

Suggested Implementation Areas

tests/e2e/ (new directory), tests/e2e/registration.e2e.test.js, tests/e2e/federation.e2e.test.js

Impact

Catches integration bugs that unit tests miss, especially middleware ordering and error handler behavior.

Activity

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions