Intercept and mock outgoing Node.js network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Super useful when testing code that hits remote servers.
Node.js calls
listenerCount()
in the course of upgrading http connections to websockets, so add this from EventEmitter to the Mitm prototype