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
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.
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
Suggested Implementation Areas
tests/e2e/(new directory),tests/e2e/registration.e2e.test.js,tests/e2e/federation.e2e.test.jsImpact
Catches integration bugs that unit tests miss, especially middleware ordering and error handler behavior.