Is there any way to stub an ES6 class method using Mocha / Sinon?
I'm trying to do it ...
sinon.stub(Factory, 'announce');
but I just get the following error ...
TypeError: Attempted to wrap undefined property announce as function
michael
source share