Boiler template to build AWS Lambda with Typescript. Unit tests use Jest.
Technologies used
You need the serverless framework to deploy and build
npm install -g serverless
Clone the repository and install the packages.
git clone https://github.com/purini-to/serverless-aws-typescript-jest
cd serverless-aws-typescript-jest
use npm or yarn
# npm
npm install
# yarn
yarn
Unit tests with Jest
npm test
Serverless local invoke
serverless invoke local -f hello -l -p functions/hello/__tests__/__data__/event_s3_put.json
serverless deploy -v