nock.removeInterceptor
with an Interceptor
instance does not remove it from its scope
#2353
Open
2 tasks done
Labels
Please avoid duplicates
Reproducible test case
See example snippet in description.
Nock Version
13.2.4
Node Version
16.13.1
TypeScript Version
No response
What happened?
Removing interceptors through
nock.removeInterceptor
correctly removes them from pending and active mocks, but does not remove them from their scope'sinterceptors
array. This seems similar to #721 but related toscope.interceptors
rather thannock.pendingMocks()
.Repro:
Expected logged values:
Actual logged values:
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: