I have searched a lot to write a test case for DynamoDB APIs in node js with mocha. There are lots of materials available and there are many libraries also provided by many groups or individuals.

The main and the important library you can find on the web to write a test case for AWS API is ‘aws-sdk-mock’. I tried adding this library to my project and I found that it's a little bit complicated to write test cases with the approach which was suggested by this library.

In the end, I conclude, I don't want to check/test the code…

Pritam Panhale

an aspiring developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store