matratze / lambda-http-testing

Testing your lambdas using chai-http

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Testing your lambdas using chai-http


Languages

Language:JavaScript 100.0%