Open rclark opened 8 years ago
@rclark thanks very much for informing us ... please let us know if you make any progress with your investigation on in the Sinon issue.
+1 just saw this break our specs today.
Pull Requests v. much welcomed!
Even though the sinon bug shouldn't be too hard to solve, it'll be backed up in a sinon v2 release. I wonder if aws-sdk-mock needs to hack around the bug to get working on the updated aws-sdk sooner?
@nelsonic generally, I've found that I can't do this with sinon anymore:
var stub = sinon.stub(AWS, 'ECS');
... but I can do this:
var stub = sinon.stub();
var ECS = AWS.ECS;
AWS.ECS = stub;
Would an approach like this work in aws-sdk-mock? If that sounds like a direction to pursue I can try and PR.
+1 it broke my specs today.
We locked our aws-sdk
@ version 2.5.6
in package.json to get things working again.
Can you give version 2.6.4
of the SDK a try? We updated the SDK to lazy-load service client models instead of the entire service client class. I ran one of the examples in this project's README and it succeeded with the latest version of the SDK.
@chrisradek That worked!
any idea when you can support latest version of aws-sdk@2.9.0? I don't want to go back to previous version if we didn't have to. thanks!
At least some of the service objects in aws-sdk v2.6.x are now getter/setter-only properties. This hits an upstream bug: https://github.com/sinonjs/sinon/issues/1018.