In the previous lesson, we created an AWS Lambda function with an API Gateway trigger using a docker image. Today, I’ll show you how to run and test that docker container locally and how to test the Lambda function using the AWS console.
jesttesting framework to run our tests.
testcommand in the
event.jsonto simulate JSON payload
app.test.jsfile where we will define our unit tests.
Testbutton and paste JSON payload.