-
Notifications
You must be signed in to change notification settings - Fork 10
AWS-SDK 2.6.1 breaks mock-aws #4
Comments
@yoitsro Is Seeing something similar on one of my projects. |
Hey @pedrocarrico, yeah it is. |
This is happening to me too... 😞 /cc @antonosmond |
I'll try and look at this at the weekend |
Thanks @antonosmond! Something really strange I saw last night when digging into this was that if I cloned the repo and For reference, here's the stack I'm seeing: TypeError: Attempted to wrap undefined property STS as function
at checkWrappedMethod (/myrepo/node_modules/sinon/lib/sinon/util/core.js:76:29)
at Object.wrapMethod (/myrepo/node_modules/sinon/lib/sinon/util/core.js:120:21)
at Object.stub (/myrepo/node_modules/sinon/lib/sinon/stub.js:60:26)
at createStub (/myrepo/node_modules/mock-aws/lib/mock-aws.js:17:9)
at Object.<anonymous> (/myrepo/node_modules/mock-aws/lib/mock-aws.js:12:5)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/myrepo/test/foo_test.js:5:11)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at /Users/dee/.nvm/versions/node/v6.7.0/lib/node_modules/mocha/lib/mocha.js:219:27
at Array.forEach (native)
at Mocha.loadFiles (/Users/dee/.nvm/versions/node/v6.7.0/lib/node_modules/mocha/lib/mocha.js:216:14)
at Mocha.run (/Users/dee/.nvm/versions/node/v6.7.0/lib/node_modules/mocha/lib/mocha.js:468:10)
at loadAndRun (/Users/dee/.nvm/versions/node/v6.7.0/lib/node_modules/mocha/bin/_mocha:359:22)
at Object.<anonymous> (/Users/dee/.nvm/versions/node/v6.7.0/lib/node_modules/mocha/bin/_mocha:376:3)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3 |
To be honest I think this is going to need a complete re-write if what @yoitsro said is true. |
😞 - thanks anyway @antonosmond ! |
I've noticed that |
doesn't seem to work with 2.7.16 |
The AWS SDK has changed the way it loads its services. It now employs a lazy loading way, whereby services are loaded when they're first needed: aws/aws-sdk-js@39a1783
As a result, this breaks mock-aws.
The text was updated successfully, but these errors were encountered: