Closed kettanaito closed 7 months ago
This has been released in v0.26.6!
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.
This way, imports to
WebSocketOverride
do not produce a dependency on the globalWebSocket
class. Otherwise, theWebSocket.CONNECTING
(and similar) throw an error when you import the WebSocket interceptor, even if you are not planning on doing anything with it.Context: getting the WebSocket undefined error when migrating to the latest Interceptors in MSW: