Testing functions using the npm modules

There is a lot of testing that you can do with mocha and chai, however, with time, your test code becomes really long, complex, and difficult to manage. This can prove to be an issue, especially when it comes to adding newer functionality to your code and then requiring to retest it all over again. 

That's one or more reasons why we now have a wide assortment of simpler, easier to use test frameworks that encapsulate a lot of the bulk validation code and help minimize the complexity of managing test cases. One such really interesting framework is provided as an npm module, so it makes it really easy to test Lambda functions that are written in Node.js and that module is called as lambda-tester created ...

Get Implementing AWS: Design, Build, and Manage your Infrastructure now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.