| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #5542 +/- ##
=======================================
Coverage 93.45% 93.45%
=======================================
Files 110 110
Lines 37376 37376
=======================================
+ Hits 34928 34930 +2
+ Misses 2448 2446 -2 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Closes #996.
Clarifies that setGlobalDispatcher(mockAgent) only affects Undici APIs that use the global dispatcher and does not monkeypatch separately constructed Pool or Client instances. Adds a small example showing the recommended testing pattern: pass the MockPool returned by mockAgent.get(origin) into code that accepts a pool.
Verification
Results: lint passed, the MockPool example returned 200, and diff check passed.