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
Hi Guys, I'm trying to test a react app which uses socket.io-client (with cypress).
I saw that the recommended approach is to set window.io = SocketIO however it seems like socket.io-client does not use this global var.
I saw that in #169 you recommended setting the mock in the production code however I wanted to know is it possible to mock without touching this code.
Thanks
The text was updated successfully, but these errors were encountered:
Hi Guys, I'm trying to test a react app which uses socket.io-client (with cypress).
I saw that the recommended approach is to set
window.io = SocketIO
however it seems like socket.io-client does not use this global var.I saw that in #169 you recommended setting the mock in the production code however I wanted to know is it possible to mock without touching this code.
Thanks
The text was updated successfully, but these errors were encountered: