You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add 5 more CFN synthesis fixtures for previously-uncovered code paths
Builds on the 24-fixture suite from #704. Each new fixture targets a
specific plugin code path that the existing fixtures don't exercise:
- sync-config-versioned (3 tests): DynamoDB conflict resolution with
OPTIMISTIC_CONCURRENCY and AUTOMERGE handlers, plus delta sync table
configuration for offline-capable mobile apps. Closes a gap where
syncConfig.test.ts had unit coverage but no synthesis coverage.
- custom-domain-no-cfn (5 tests): The useCloudFormation: false code
path on the domain config. Asserts the absence of CFN resources
(DomainName, DomainNameApiAssociation, RecordSet, Certificate) that
the useCloudFormation: true variant DOES create. Complements the
existing custom-domain fixture.
- waf-pre-existing-arn (2 tests): WAF attached via an existing ACL ARN
rather than created inline via rules. Different code path in Waf.ts
that emits only WebACLAssociation, not WebACL. Complements the
existing waf fixture.
- pipeline-resolver-with-code (3 tests): A pipeline resolver with its
own top-level JS code (before/after handlers) in addition to per-
function code. Different from the existing pipeline-resolvers fixture
which only has function-level code.
- api-key-import-existing (3 tests): Importing an existing API key via
apiKeyId for stable migrations / blue-green deploys, alongside an
auto-generated key. Verifies ApiKeyId is passed through faithfully.
Test surface grows from 25 -> 30 suites and 68 -> 84 assertions.
Real plugin behavior caught while building the fixtures:
- DataSource config 'versioned: true' is silently ignored unless
'deltaSyncConfig' is ALSO provided. Without delta sync config, the
CFN output omits the Versioned attribute entirely. Worth noting in
docs eventually, but not breaking — included both in this fixture
to demonstrate the combination that actually works.
|[waf-pre-existing-arn](./waf-pre-existing-arn/)| Attach a pre-existing shared WAF WebACL by ARN |
47
+
|[pipeline-resolver-with-code](./pipeline-resolver-with-code/)| Pipeline resolver with its own top-level JS (before/after handlers) plus per-function code |
48
+
|[api-key-import-existing](./api-key-import-existing/)| Import an existing API key by ID (stable migration) alongside auto-generated keys |
0 commit comments