Skip to content

matratze/lambda-http-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda Testing

This projects demonstrates how to test your lambdas using chai-http plugin. Before proceeding make sure you have installed Node.js and the SAM-CLI on your system.

1. Setup Layer

cd layer/nodejs
npm install

2. Build and run api

cd ..
sam build
sam local start-api

Run tests

cd tests
npm install
npm run test