• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pmcelhaney / counterfact / 22882848157 / 1
83%
main: 87%

Build:
Build:
LAST BUILD BRANCH: copilot/fix-deprecated-unescape-function
DEFAULT BRANCH: main
Ran 10 Mar 2026 02:39AM UTC
Files 100
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Mar 2026 01:30AM UTC coverage: 82.258% (+0.02%) from 82.243%
22882848157.1

Pull #1524

github

Copilot
Fix root middleware not being executed for all routes

The recurse() function in registry.ts traversed paths as:
/admin/users → /admin → "" → null, never checking "/".
Root middleware is registered at key "/" by the module-loader,
so it was never applied.

Fix: change nextPath calculation to traverse through "/" instead
of "", so traversal goes: /admin/users → /admin → / → null.

Also update tests to use "/" key for root middleware (consistent
with how module-loader registers it), and add a test specifically
for the root middleware case described in the issue.

Co-authored-by: pmcelhaney <51504+pmcelhaney@users.noreply.github.com>
Pull Request #1524: Fix root middleware not executed for any routes

1422 of 1583 branches covered (89.83%)

Branch coverage included in aggregate %.

8106 of 10000 relevant lines covered (81.06%)

30.02 hits per line

Source Files on job 22882848157.1
  • Tree
  • List 100
  • Changed 43
  • Source Changed 1
  • Coverage Changed 43
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22882848157
  • 2c9c2562 on github
  • Prev Job for on copilot/fix-root-middleware-execution (#22782999967.1)
  • Next Job for on copilot/fix-root-middleware-execution (#22913561993.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc