I'm struggling with a pretty trivial problem. I am able to stub functions in all dependency packages and it's working great but when I try and stub my own functions I can't seem to get it working. See the following simple example:
test.js:
var myFunctions = require('../index')
var testStub = sinon.stub(myFunctions, 'testFunction')
testStub.returns('Function Stubbed Response')
....
myFunctions.testFunction() // is original response
index.js:
exports.testFunction = () => {
return 'Original Function Response'
}