I’ve been strugling to implement integration tests with Socket.io for some time. I didn’t find any good tutorial, and the documentation lacks in this part. Here are some problems I had:
It does not show how to listen to events on the server, like serverSocket.on(”received-message”, (data) ⇒ doSomething(data)) and get a response on the client to assert
Examples without TypeScript
No example with vitest
I already implemented a simple demo around that, is it valid to create a pull request?
I’ve been strugling to implement integration tests with Socket.io for some time. I didn’t find any good tutorial, and the documentation lacks in this part. Here are some problems I had:
I already implemented a simple demo around that, is it valid to create a pull request?