Mock the aws-sdk using jest

Hi ✋, The hardest part of writing the unit test is creating mocks for external libraries, the purpose of this article is to help someone who has problems mocking a library like this.Today I'm going to code how to mock your lambda invoke function in 'aws-sdk' using a jest 💪.I'm going to write test cases for the below code....

Page 1 of 11
Powered by Blogger.