Skip to main content
Testing utilities for cdktf applications.

Initializers


Static Functions


App

Returns an app for testing with the following properties: - Output directory is a temp dir.

optionsOptional


EnableFutureFlags

appRequired


FakeCdktfJsonPath

appRequired


FullSynth

stackRequired


RenderConstructTree

constructRequired

  • Type: github.com/aws/constructs-go/constructs/v10.IConstruct

SetupJest

StubVersion

appRequired


Synth

Returns the Terraform synthesized JSON.

stackRequired


runValidationsOptional

  • Type: *bool

SynthHcl

Returns the Terraform synthesized JSON.

stackRequired


runValidationsOptional

  • Type: *bool

returnMetadataOptional

  • Type: *bool

SynthScope

fnRequired


ToBeValidTerraform

receivedRequired

  • Type: *string

ToHaveDataSource

receivedRequired

  • Type: *string

resourceTypeRequired

  • Type: *string

ToHaveDataSourceWithProperties

receivedRequired

  • Type: *string

resourceTypeRequired

  • Type: *string

propertiesOptional

  • Type: *map[string]interface{}

ToHaveProvider

receivedRequired

  • Type: *string

resourceTypeRequired

  • Type: *string

ToHaveProviderWithProperties

receivedRequired

  • Type: *string

resourceTypeRequired

  • Type: *string

propertiesOptional

  • Type: *map[string]interface{}

ToHaveResource

receivedRequired

  • Type: *string

resourceTypeRequired

  • Type: *string

ToHaveResourceWithProperties

receivedRequired

  • Type: *string

resourceTypeRequired

  • Type: *string

propertiesOptional

  • Type: *map[string]interface{}