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: 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: System.Collections.Generic.IDictionary< string, object >

ToHaveProvider

ReceivedRequired

  • Type: string

ResourceTypeRequired

  • Type: string

ToHaveProviderWithProperties

ReceivedRequired

  • Type: string

ResourceTypeRequired

  • Type: string

PropertiesOptional

  • Type: System.Collections.Generic.IDictionary< string, object >

ToHaveResource

ReceivedRequired

  • Type: string

ResourceTypeRequired

  • Type: string

ToHaveResourceWithProperties

ReceivedRequired

  • Type: string

ResourceTypeRequired

  • Type: string

PropertiesOptional

  • Type: System.Collections.Generic.IDictionary< string, object >