-
Run
npm install
to install dependencies. -
Run
npm run test
to run the test cases. -
Run
npm run test-coverage
to run the test cases with code coverage. Opencoverage/index.html
in browser to view the test case coverage. -
To run the lambda function locally, open
src/lambda/app.js
and uncomment a section of code (line 12 to 15). Then runnpm run start
command in the terminal to execute the lambda.
-
Notifications
You must be signed in to change notification settings - Fork 0
Unit testing of AWS lambda function (Node.js) using Mocha, Chai and Sinon
License
SyedAfrozPasha/node-lambda-unit-test-sinon
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Unit testing of AWS lambda function (Node.js) using Mocha, Chai and Sinon