jest-stub-super-constructor
v0.3.0
Published
Easily stub the super call from a constructor using jest
Downloads
282
Readme
Easily stub the super call from a constructor using jest
Usage
Just use it passing the class you want to stub the super on the constructor, like this:
const superStub = stubSuperConstructor(MyClass);
And use the superStub the way you're used to, as with any other spy.
License
Licensed under MIT.