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: constructs.IConstruct

setupJest

stubVersion

appRequired


synth

Returns the Terraform synthesized JSON.

stackRequired


runValidationsOptional

  • Type: boolean

synthHcl

Returns the Terraform synthesized JSON.

stackRequired


runValidationsOptional

  • Type: boolean

returnMetadataOptional

  • Type: boolean

synthScope

fnRequired


toBeValidTerraform

receivedRequired

  • Type: string

toHaveDataSource

receivedRequired

  • Type: string

resourceTypeRequired

  • Type: string

toHaveDataSourceWithProperties

receivedRequired

  • Type: string

resourceTypeRequired

  • Type: string

propertiesOptional

  • Type: {[ key: string ]: any}

toHaveProvider

receivedRequired

  • Type: string

resourceTypeRequired

  • Type: string

toHaveProviderWithProperties

receivedRequired

  • Type: string

resourceTypeRequired

  • Type: string

propertiesOptional

  • Type: {[ key: string ]: any}

toHaveResource

receivedRequired

  • Type: string

resourceTypeRequired

  • Type: string

toHaveResourceWithProperties

receivedRequired

  • Type: string

resourceTypeRequired

  • Type: string

propertiesOptional

  • Type: {[ key: string ]: any}