Skip to content

Files

Latest commit

4684850 · Aug 11, 2023

History

History
This branch is 281 commits behind aws-samples/serverless-test-samples:main.

typescript-test-samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 20, 2023
Jul 11, 2023
Apr 24, 2023
Jul 20, 2023
Jul 20, 2023
Jul 20, 2023
Jul 20, 2023
Jul 20, 2023
May 5, 2023

typescript: 4.9.4

TypeScript Test Samples

This project contains code samples for testing serverless applications using TypeScript.

Test Patterns

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.

API Tests

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.

Event Driven Architectures

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.