As with all MAJOR releases in semver, there are breaking changes in sinon@4. This guide will walk you through those changes.

sinon.stub(obj, 'nonExistingProperty') - Throws

Trying to stub a non-existing property will now fail, to ensure you are creating less error-prone tests.