Kyle Coberly

Results 3 comments of Kyle Coberly
trafficstars

I came up with an example of how to work around this: https://github.com/kylecoberly/playwright-socket-mocking-example It's not bulletproof, but it's fairly simple and should allow you to send socket messages to a...

You could probably lift that socket server out of the function to keep the same reference for every call.

Here's another example: ![image](https://user-images.githubusercontent.com/1958931/185306922-b749f07e-931a-4ff7-85d0-08a93465c665.png) This one is Cucumber + supertest. The stack trace is supertest's code, not my app's. The same thing happens with `expect`: ![image](https://user-images.githubusercontent.com/1958931/185309356-1c488289-ea5e-421f-aed2-915ba2fe6314.png)