pretenderjs / pretender

A mock server library with a nice routing DSL
MIT License
1.26k stars 158 forks source link

Unable to extend verbified methods #339

Open amk221 opened 3 years ago

amk221 commented 3 years ago

In 3.4.3 it was possible to do:

export default class extends Pretender {
  get(path, handler) {
    // console.log('do something');
    return super.get(...arguments);
  }
}

But as of 3.4.4, specifically this commit. It's not possible any more.

This isn't necssarily an issue, because it can be worked around.

But I just thought I'd raise here for some feedback?