Closed kettanaito closed 3 months ago
This has been released in v0.28.0!
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.
Much like request handlers in MSW, everything you write in your interceptors is from the server's perspective. If an exception happens on the server, it's usually handled gracefully as the 500 error response to the client. This consistency is nice for predictability but also aligned behavior across the low-level Interceptors and high-level MSW.
Changes
request
listeners are now coerced to500 Unhandled Exception
mocked error response to emulate server suffering an exception.request.respondWith(Response.error())
.