✅ add discarded middleware test by ctcpip · Pull Request #5819 · expressjs/express
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To demonstrate the issue I am trying to address, replace
return router.handle(req, res, next);
with
console.log('I want to remove this'); return router.handle(req, res, next);
Is there a mechanism in this case to remove the console.log(...)?