@andybalham/sls-testing-toolkit
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Serverless Testing Toolkit

A set of components that leverage the AWS CDK to make testing of serverless constructs in the cloud straightforward.

The best way to see what sls-testing-toolkit can do for you is to look at the examples or, better still, run them.

Examples

Simple Event Router

This example tests a construct that encapsulates a simple SNS event router. It demonstrates how the toolkit can publish test events and observe the effects to validate the behaviour.

Simple Message Router

This example is similar to the Simple Event Router, but uses SQS queues with DLQs instead of SNS topics. It demonstrates how the toolkit can be used to test error conditions with the use of mock Lambda function responses.

Loan Processor State Machine

This example demonstrates how the toolkit can be used to test step functions. It shows how the toolkit can be used to execute and monitor step functions and how it can be used to exercise all the step function branches with the use of mock responses. In addition, it demonstrates how the toolkit can be used to observe DynamoDB table events along with SQS queues and SNS topics.

Notification Hub

This example shows how the toolkit can be used to put events on an EventBridge event bus. It also shows how the toolkit can be used to test event patterns, both prior to deployment and also once the rules are deployed.

Package Sidebar

Install

npm i @andybalham/sls-testing-toolkit

Weekly Downloads

12

Version

1.0.14

License

ISC

Unpacked Size

123 kB

Total Files

82

Last publish

Collaborators

  • andybalham