Skip to content

Unit testing of AWS lambda function (Node.js) using Mocha, Chai and Sinon

License

Notifications You must be signed in to change notification settings

SyedAfrozPasha/node-lambda-unit-test-sinon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unit Testing of AWS lambda functions (Node.js) using Mocha, Chai and Sinon

Quick Guide

  1. Run npm install to install dependencies.

  2. Run npm run test to run the test cases.

  3. Run npm run test-coverage to run the test cases with code coverage. Open coverage/index.html in browser to view the test case coverage.

  4. To run the lambda function locally, open src/lambda/app.js and uncomment a section of code (line 12 to 15). Then run npm run start command in the terminal to execute the lambda.

Tools/Libraries Used

About

Unit testing of AWS lambda function (Node.js) using Mocha, Chai and Sinon

Topics

Resources

License

Stars

Watchers

Forks