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.
Other
637
stars
48
forks
source link
feat: add ability to reject connection with ECONNREFUSED #73
Addresses #72
For context -- I am looking to use this functionality in the tests for rsocket-js.
Usage example: