You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proxy server package (graph-explorer-proxy-server) has most of its logic in a single node-server.ts file that is difficult to test in isolation. Route handlers, middleware, server creation, and configuration resolution are all interleaved in module-level code.
This task tracks the work to decompose the proxy server into focused, independently testable modules:
Extract createApp() — Express app with routes and middleware, testable via supertest
Extract createServer() — HTTP/HTTPS server creation decision
Extract resolveServerConfig() — Port selection, HTTPS detection, certificate paths, base URL
Add global test setup with credential safety mocks (prevent real AWS credentials or HTTP requests in tests)
The proxy server package (
graph-explorer-proxy-server) has most of its logic in a singlenode-server.tsfile that is difficult to test in isolation. Route handlers, middleware, server creation, and configuration resolution are all interleaved in module-level code.This task tracks the work to decompose the proxy server into focused, independently testable modules:
createApp()— Express app with routes and middleware, testable via supertestcreateServer()— HTTP/HTTPS server creation decisionresolveServerConfig()— Port selection, HTTPS detection, certificate paths, base URLRemaining work was split into separate issues:
Important
If you are interested in working on this issue, please leave a comment.
Tip
Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.