You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement partial recording that only records nocks for new or changed requests. As a first step, I'm trying to get interceptors and recording working at the same time. I have code that looks roughly like this:
I know that the interceptor won't do anything useful at the moment; I'm just trying to make sure it's executed so that I can override behavior for some requests. However, I never see intercepted uri logged, so as far as I can tell, my interceptor isn't actually running.
Does nock support adding custom interceptors while recording is active? If so, how can I do that? If not, I'd be willing to open a PR if I could get some guidance on an approach.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to implement partial recording that only records nocks for new or changed requests. As a first step, I'm trying to get interceptors and recording working at the same time. I have code that looks roughly like this:
I know that the interceptor won't do anything useful at the moment; I'm just trying to make sure it's executed so that I can override behavior for some requests. However, I never see
intercepted uri
logged, so as far as I can tell, my interceptor isn't actually running.Does nock support adding custom interceptors while recording is active? If so, how can I do that? If not, I'd be willing to open a PR if I could get some guidance on an approach.
Beta Was this translation helpful? Give feedback.
All reactions