Skip to content

kaihendry/aws-jest-lambda

Repository files navigation

Goal: Test Javascript like gotestaws

  • Mock AWS calls
  • Assert their parameters are correct
  • Simulate their responses to ensure the logic using them are handling them as expected
  • TODO: Simulate exception handling

Current issue

The mock.calls[0][0] method of asserting params feels a little wrong.

Switch to AWS JS SDK v3

Big con of this approach is that the existing code base would have to be refactored.

Switching from the established aws-sdk-mock to the new aws-sdk-client-mock.

About

AWS Lambda testing approach in Javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published