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.

contextOptional

  • Type: typing.Mapping[typing.Any]

enable_future_flagsOptional

  • Type: bool

fake_cdktf_json_pathOptional

  • Type: bool

outdirOptional

  • Type: str

stack_tracesOptional

  • Type: bool

stub_versionOptional

  • Type: bool

enable_future_flags

appRequired


fake_cdktf_json_path

appRequired


full_synth

stackRequired


render_construct_tree

constructRequired

  • Type: constructs.IConstruct

setup_jest

stub_version

appRequired


synth

Returns the Terraform synthesized JSON.

stackRequired


run_validationsOptional

  • Type: bool

synth_hcl

Returns the Terraform synthesized JSON.

stackRequired


run_validationsOptional

  • Type: bool

return_metadataOptional

  • Type: bool

synth_scope

fnRequired


to_be_valid_terraform

receivedRequired

  • Type: str

to_have_data_source

receivedRequired

  • Type: str

resource_typeRequired

  • Type: str

to_have_data_source_with_properties

receivedRequired

  • Type: str

resource_typeRequired

  • Type: str

propertiesOptional

  • Type: typing.Mapping[typing.Any]

to_have_provider

receivedRequired

  • Type: str

resource_typeRequired

  • Type: str

to_have_provider_with_properties

receivedRequired

  • Type: str

resource_typeRequired

  • Type: str

propertiesOptional

  • Type: typing.Mapping[typing.Any]

to_have_resource

receivedRequired

  • Type: str

resource_typeRequired

  • Type: str

to_have_resource_with_properties

receivedRequired

  • Type: str

resource_typeRequired

  • Type: str

propertiesOptional

  • Type: typing.Mapping[typing.Any]