Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
1 reply
Yunis

Using database-js to test Lambda function locally

So... I have a lambda function which should connect to Planetscale on prod. When developing locally, I want to connect to my localhost database. I also test my lambda function locally using serverless invoke local (https://www.serverless.com/framework/docs/providers/aws/cli-reference/invoke-local).

Am I choosing the wrong approach here? How do you test your Lambda functions locally?
Was this page helpful?