Jonathan Samines

Results 60 comments of Jonathan Samines

Given the last reproduction example sent by @fakekamrankhan (which only involves express). Seems unlikely that this is an issue with this library.

I don't think this error is caused by supertest, as all this library does is to perform bare http requests and allow you to assert over the response. That is...

@voiddeveloper Your custom `.listen` method needs to return the *express application**.

@ravichandranjv what is your test trying to achieve? Knowing that could help debugging this issue

@golubvladimir All supertest will do is to create an http request. If `req.user` is result of some form on authentication mechanism, you have to replicate (at http level) whatever that...

@brightbyte In case of remote servers, what you propose is the only way to do that with `supertest`.

@alexl0gan The reason the last example seems to be working, is because the test in not waiting for the async operation to complete. You could use the `.end` to wait...

@sveisvei I think you can use the import * syntax instead: ```js import * as HapiPino from 'hapi-pino'; ``` @mcollina I looked it up and seems like this is solvable...

Hey @NickColley you'll probably need to adjust the [allowModules](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-require.md#allowmodules) plugin setting to exclude ava. I had to do a similar thing for `eslint-plugin-import` (see https://github.com/mysticatea/eslint-plugin-node/issues/314). Most of eslint plugins do...