(assertions): Can't make templates from stacks with cross-stack references #23814
Labels
@aws-cdk/assertions
Related to the @aws-cdk/assertv2 package
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the bug
I try to test a stack that receives resources from other stacks as props.
I received an error when generating a template from a stack and couldn't make its snapshots. It seems to be derived from cross-stack references.
Expected Behavior
Snapshots of a stack with cross-stack references are generated successfully.
Current Behavior
Reproduction Steps
Add a test:
test/sample-stack.test.ts
.Define a stack:
lib/cross-stack-snapshot-test.test.ts
.Then, run tests:
npm run test -- -u
.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.61.1 (build d319d9c)
Framework Version
No response
Node.js Version
v16.16.0
OS
MacOS Monterey version 12.6.2 (21G320)
Language
Typescript
Language Version
No response
Other information
Related issues:
The text was updated successfully, but these errors were encountered: