Skip to content

fix: include wrapped routers in listRoutes - #225

Open
bjohansebas wants to merge 2 commits into
masterfrom
fix/list-routes-wrapper-support
Open

bjohansebas wants to merge 2 commits into
masterfrom
fix/list-routes-wrapper-support

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Express wraps mounted sub-applications in middleware, so listRoutes() skips them. Recognize handle.router to support expressjs/express#7531.

Also fix coverage aggregation: lcov 2.4 rejects duplicate function names from Istanbul. Skip function records while preserving the existing line coverage.

Validation: 890 router tests, lint/types, 15 Express integration tests, and merging all 10 CI reports.

Recognize routers exposed through middleware wrappers so Express can inspect mounted sub-applications. Preserve lazy router access and wrapper dispatch, and cover the behavior with tests and documentation.
Istanbul emits repeated function names for distinct JavaScript scopes, which lcov 2.4 rejects. Disable function aggregation for the existing line-coverage report while retaining the original artifacts.

Reproduced the failure using the ten CI artifacts and verified that the resulting Coveralls payload preserves every line-hit count.
@bjohansebas
bjohansebas requested a review from a team November 28, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant