Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => { server = new WS(FAKE_URL); warnSpy.mockReset(); });
Mock websockets and assert complex websocket interactions with Jest