MDAA TS Docs
    Preparing search index...

    Function baselineDiffTestApp

    • Baseline diff test using the CDK Toolkit Library.

      Stores baseline CloudFormation templates as JSON under test/snapshots/, named after the sample config file (e.g., sample-config-comprehensive.baseline.json). When a config produces multiple stacks, each gets its own file: {configBaseName}.{stackName}.baseline.json.

      Docker-related Lambda Code.from* methods are mocked to prevent Docker invocation during synth.

      Only resource and output differences are considered failures. Metadata, input parameters, conditions, and mappings are ignored.

      Parameters

      • testNamePrefix: string

        Human-readable test name (shown in failures)

      • appProvider: () => App

        Memoized factory that returns the CDK app

      • Optionaloptions: BaselineDiffOptions

        Optional configuration (e.g., ignoreResourcePatterns)

        To create or update baselines: UPDATE_BASELINES=true npx jest

      Returns void