Hi all, first post here.
I aws wondering how people are testing their Lambdas; I've used Jest but I can't seem to get it to mock the AWS-SDK properly. Has anyone else had similar issues?
Thanks in advance for any help
I build my handers in a way that I separate my internal functions (which I unit test, and easiliy) from my functions that require access to external resources (like the aws-sdk). On principal I try avoid testing things I don't own; It's not always possible.
+1 and then test the endpoints with Mocha.
Hi, thanks for the response.
I've structured my functions similarly, however this isn't always possible and a need for mocking does occassionally arise, I was wondering if anyone had a solution?
@hassankhan perhaps my answer here would help.