CDK Integration Testing

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • cdk-integration-tests

    Example CDK integration testing construct

  • An example project can be found in the GitHub project theBenForce/cdk-integration-tests

  • zora

    Lightest, yet Fastest Javascript test runner for nodejs and browsers

  • ℹ️ Since all you need from the test runner is to know if the tests passed or failed, you won't need anything that advanced. The zora testing library looks like a good alternative if you want to try something different.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • esbuild

    An extremely fast bundler for the web

  • Next, create the handler lambda. The only complicated part of this is injecting the testEntry property into your source code. You're going to use [esbuild](https://esbuild.github.io/) to take care of that.

  • cfn-lambda

    CloudFormation custom resource helper for Lambda Node.js runtime

  • Install the cfn-lambda package in your project. It provides some helper methods to make creating the custom resource handler easier. Once it's installed, create a file called handlerLambda.ts inside of the IntegrationTests directory. Add the following code to the file to handle basic custom resource interactions.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts