AWS CDK Unit Testing Strategist
Optimizes AWS CDK unit testing by implementing strategic snapshot, fine-grained assertion, and validation patterns to ensure infrastructure reliability.
This skill provides a comprehensive framework for writing, reviewing, and architecting tests for AWS CDK applications. It moves beyond basic coverage by offering a strategic decision-making flow to help developers choose the right test type—Snapshots, Fine-grained assertions, or Validation—based on the complexity and nature of the code. By focusing on procedural logic like loops and branches while avoiding redundant testing of declarative definitions, it reduces maintenance overhead and prevents 'double-definition' anti-patterns. Additionally, it includes advanced performance tips such as skipping esbuild bundling for NodejsFunction to accelerate local test execution.