Closed jcald1 closed 4 years ago
Need to see a full code example here, including how you're requiring the SDK. It'll be easiest to help if you give me something I can clone and then npm install && npm test
and get an error.
@bendrucker , it worked for me in the small repro, so there must be some other issue going on with my code. Closing the ticket.
I'm using version 2.1.3.
I have the following code in my test:
../..handler.js
requires a library with this statement:const AWS = require('aws-sdk')
In the library code in
node_modules
, when I addconsole.log(AWS.Lambda)
, I get:which is the original function, not the mock.