stopNetworkMonitoring function ✓ 100.0%
Last updated: 2026-03-05T11:49:57.418Z
Metrics
LOC: 20
Complexity: 5
Params: 0
Coverage: 100.0% (4/4 lines, 0x executed)
Signature
stopNetworkMonitoring(): : void
Source Code
function stopNetworkMonitoring(): void {
if (origFetch) {
globalThis.fetch = origFetch;
origFetch = null;
}
if (origXhrOpen) {
XMLHttpRequest.prototype.open =
origXhrOpen as typeof XMLHttpRequest.prototype.open;
origXhrOpen = null;
}
if (origXhrSend) {
XMLHttpRequest.prototype.send = origXhrSend;
origXhrSend = null;
}
if (networkIdleTimer) {
clearTimeout(networkIdleTimer);
networkIdleTimer = null;
}
pendingNetworkRequests = 0;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| stopRecording | calls |