Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 382 Bytes

File metadata and controls

30 lines (20 loc) · 382 Bytes

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