The express support is really nice; being able to run against an app without fixing up a webserver. Could we get this functionality for koa?
As always, after further prodding I got my code working;
var req = request(app.listen());
did the trick!
yay!
thanks!
TypeError: app.address is not a function
at Test.serverAddress (E:\dev\gtfo\node_modules\supertest\lib\test.js:55:18)
at new Test (E:\dev\gtfo\node_modules\supertest\lib\test.js:36:12)
Using [email protected] with [email protected].
Do I have to pass in app.listen()?
@fritx can you give that a try, that worked in the example above for the other user.
@mikelax yeah it works, but I'm wondering if supertest could improve in this case.
Most helpful comment
As always, after further prodding I got my code working;
did the trick!