Jonathan Samines
Jonathan Samines
I have the same problem with the latest version of airsonos.
@NinnOgTonic @knownasilya Do you have a reproduction case to take a look? I just tried to run all tests from https://github.com/davidbanham/express-async-errors and didn't get any errors.
@NinnOgTonic Sorry for the super-late response. I just checked [your example](https://github.com/NinnOgTonic/supertest-bug/blob/master/src/app.ts#L10), and the issue is not on supertest, but in express. Express doesn't know how to handle async/await nor promises...
@osdiab Can you check, if you are experiencing the same issue as @NinnOgTonic ? If that is not the case, please provide a reproduction example.
@lucianonooijen Does it works if you manually invoke `app.close` after each test? (either by individually calling it, or through a `afterEach` block)
@lucianonooijen @danielantelo Sorry about that, I sometimes confuse the express app with the server object. When supertest is used in an express application not yet bound to a port, it...
@danielantelo @lucianonooijen Unless you are promisifying the server methods `close` and `listen`, that is unlikely to work, because they are expecting a callback and do not return a promise by...
@danielantelo What error are you getting while using the callback based api?
@danielantelo Sorry, I am not familiar with the mockgoose library. Most I can do, is to ask a couple of questions: Is `mongoose.connections.forEach` method an special kind of object which...
@JamieCorkhill have you tried any of the suggestions stated at [this comment](https://github.com/visionmedia/supertest/issues/520#issuecomment-436071071)? If any of those worked for you, it is very likely that the actual issue is somewhere else...