Skip to content
Advertisement

Mock AWS SES using jest in typeorm

Need to test AWS SES using jest unit testing But showing different errors, also tried solutions in another stackoverflow question The actual code to be tested is :

JavaScript

the test file is :

JavaScript

Its giving error message as:

JavaScript

Advertisement

Answer

Actually this mock works, the reason behind the error is that , i didn’t mocked the AWS.Credentials.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement