So I wrote some experimental and almost pointlessly generic connect like #nodejs thing… https://github.com/sandfox/node-pinion …
@sandfoxuk I had to use supertest to create the request+response objects, but then doing so meant I couldn't test throwing exceptions...
-
-
@sebinsua this has no idea of http, paths, routes, etc (yet), but might create generic way to plugin routing. -
@sandfoxuk Wouldn't it be possible to use the Express router with this? (Not sure how connected that is to Connect.)
- 1 more reply
New conversation -
-
-
@sandfoxuk All very well if you want to test the response, but I wanted to test some side-effects of running my middleware.
-
@sandfoxuk Ended up using a spy, but I think it's a failure of connect which doesn't allow its default behaviour to be overridden.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.