var MyClassStub = sinon.createStubInstance(MyClass);
MyClassStub doesn't contain static methods. How to fix that?
static method:
sinon.stub(YourClass, 'yourClassMethod').callsFake(() => {
return {}
})
not static method:
sinon.stub(YourClass.prototype, 'yourClassMethod').callsFake(() => {
return {}
})