Uh oh!
There was an error while loading. Please reload this page.
✅ add discarded middleware test - #5819
Conversation
Uh oh!
There was an error while loading. Please reload this page.
wesleytodd
commented
Sep 10, 2024
Lets not merge anything more to |
UlisesGascon
left a comment
There was a problem hiding this comment.
LGTM! but let's wait until we can merge it :)
UlisesGascon
commented
Oct 20, 2024
condition meet, I will merge the PR |
Jayx239
left a comment
There was a problem hiding this comment.
Left some comments to better demonstrate what I want to acheive.
| .expect(200, 'yee', function(err, res) { | ||
| if (err) return done(err); | ||
| router = new express.Router(); |
There was a problem hiding this comment.
I don't want to replace the router, I want to completely remove it.
| }); | ||
| app.use(function (req, res, next) { | ||
| return router.handle(req, res, next); |
There was a problem hiding this comment.
To demonstrate the issue I am trying to address, replacereturn router.handle(req, res, next);
withconsole.log('I want to remove this'); return router.handle(req, res, next);
Is there a mechanism in this case to remove the console.log(...)?
No description provided.