This project contains code samples for testing serverless applications using TypeScript.
Project | Description |
---|---|
TypeScript Test Samples Starter Project | This project contains an introductory example of TypeScript tests written for AWS Lambda and Amazon API Gateway. This is the best place to start! |
Calling Cloud Resources from Local Tests | This project demonstrates testing an AWS Lambda function handler locally which calls remote cloud services. The Lambda function handler makes a call to a DynamoDB table in the cloud in the integration test. |
These projects have examples of unit and integration tests for API based applications.
Project | Description |
---|---|
javascript-http-sam [External] | An implementation of the backend API using AWS API Gateway HTTP endpoint, Node.js and AWS SAM. |
Testing Amazon Api Gateway, AWS Lambda, and Amazon DynamoDB | This project contains examples of TypeScript unit and integration tests written for AWS Lambda in the context of an Amazon API Gateway API and an Amazon DynamoDB table. |
Project | Description |
---|---|
Async Integration Test Sample | In this pattern, an AWS Lambda function is configured to be an event listener to receive the asynchronous System Under Test's output data. |
Testing a Stream-based Architecture | This project contains an example of testing a data processing system that processes records from an Amazon Kinesis Data Stream and stores the processed records in an Amazon DynamoDB table. |
Schema and Contract Testing | This project contains introductory examples of TypeScript unit tests demonstrating schema and contract testing. |