An open API service indexing awesome lists of open source software.

https://github.com/kenfdev/step-functions-testing

PoC to see if integration testing with Jest is doable with Step Functions Local
https://github.com/kenfdev/step-functions-testing

Last synced: 12 months ago
JSON representation

PoC to see if integration testing with Jest is doable with Step Functions Local

Awesome Lists containing this project

README

          

# PoC Step Functions integration testing with Step Functions Local

Credits on extracting the ASL from CDK go to the following repository:

https://github.com/nathanagez/aws-cdk-state-machine-asl

There is also an excellent blog post and recommended to read:

https://nathanagez.com/blog/mocking-service-integration-step-functions-local-cdk/

This repository takes a step further and creates the CDK within Jest and sends the ASL to Step Functions Local via the AWS SDK.

## How to run the test

```
# install the dependencies
npm install # whatsoever

# run the test(make sure you have docker installed)
npm test
```

## Reference

- [Using Mocked Service Integrations - AWS Step Functions](https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local-test-sm-exec.html)
- [Mocking service integrations with AWS Step Functions Local | AWS Compute Blog](https://aws.amazon.com/jp/blogs/compute/mocking-service-integrations-with-aws-step-functions-local/)
- [aws-stepfunctions-examples/sam/app-local-testing-mock-config at main · aws-samples/aws-stepfunctions-examples](https://github.com/aws-samples/aws-stepfunctions-examples/tree/main/sam/app-local-testing-mock-config/)