Testing
CDK Fine-Grained Assertions vs. Snapshot Tests: When to Use Each
AWS CDK has two testing approaches that serve different purposes and are commonly confused: 1. Fine-grained assertions (hasResourceProperties, hasResource, resourceCountIs) — assert specific properties of specific resources 2. Snapshot tests (toMatchSnapshot) — assert the entire synthesized CloudFormation template hasn't changed Most CDK projects use one or the other exclusively,