forwardemail / forwardemail/supertest
Error middleware not properly invoked when using async functions
Open
- Dominant language
- JavaScript
- Stars
- 14.4k
- Forks
- 782
- PR merge metrics
- No merged PRs in 30d
Description
When using supertest to test an express app together with the example in the readme from https://github.com/davidbanham/express-async-errors, it seems supertest will not properly invoke the error handling middleware, and thus the test just times out rather than actually responding with the logic defined in the error handler.
This behaviour works when invoking the code via HTTP.
Contributor guide
Assessment
This issue has not been assessed yet.