Closed kettanaito closed 5 months ago
Hi, @mikicho 👋 If you have a minute, can I ask for your opinion on this?
This is a bit related to handling response stream errors. I'd like to hear your thoughts on this exception handling and if it makes sense to you. Thanks!
This is what I eventually ended up with. I think it makes the most sense and makes the exception handling predictable.
This is great! More context from discussion in Nock: https://github.com/nock/nock/issues/2211
This has been released in v0.28.3!
Make sure to always update to the latest version (npm i @mswjs/interceptors@latest
) to get the newest features and bug fixes.
Predictable release automation by @ossjs/release.
Response
instance in a request listener, that instance will be used as a mocked response.