Skip to content

Conversation

ctcpip
Copy link
Member

@ctcpip ctcpip commented Aug 9, 2024

No description provided.

@wesleytodd
Copy link
Member

Lets not merge anything more to master until we merge 5.x. Just wanted to drop the approval here since I was going through notifications.

Copy link
Member

@UlisesGascon UlisesGascon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! but let's wait until we can merge it :)

@UlisesGascon
Copy link
Member

condition meet, I will merge the PR

Copy link

@Jayx239 Jayx239 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);
Copy link

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(...)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants