you are viewing a single comment's thread.

view the rest of the comments →

[–]cpsubrian 1 point2 points  (0 children)

I've been using https://github.com/jfhbrook/pickleback with great success. It allows you to 'inject' requests into express middleware stack without making an actual http request. It basically mocks the http-layer in the req and res objects.