@finnairoyj/cdk-constructs-lib - v1.0.2
    Preparing search index...

    Function getTestEnv

    • Get a set of dummy test resources for testing Stacks or Constructs.

      In cdk-nag v3 a NagPack is a native CDK validation plugin rather than an Aspect, so the AwsSolutions checks are executed on demand by the assertion helpers (hasError, hasNoError, etc.) against the stack under test. Any suppressions passed here are recorded up front using the native Validations.of(construct).acknowledge() API and are honoured when the checks run.

      Parameters

      • OptionalnagSuppressions: Acknowledgment[]

        Set of cdk-nag rule acknowledgements to apply to the test stack

      Returns { app: App; stack: Stack; stage: Stage }

      Set of test resources for testing stacks or constructs