TypeError: Attempted to wrap undefined property S3 as function
at checkWrappedMethod (node_modules/aws-sdk-mock/node_modules/sinon/lib/sinon/util/core.js:78:29)
at Object.wrapMethod (node_modules/aws-sdk-mock/node_modules/sinon/lib/sinon/util/core.js:121:21)
at Object.stub (node_modules/aws-sdk-mock/node_modules/sinon/lib/sinon/stub.js:67:26)
at mockService (node_modules/aws-sdk-mock/index.js:67:27)
at Object.AWS.mock (node_modules/aws-sdk-mock/index.js:43:5)
at Context.<anonymous> (myModule.spec.js:14:9)
Here is my module:
Here is my test script:
I'm getting this error in the before hook:
Thoughts?