(integ-runner): (Snapshot serializer to ignore certain fields) #31299
Labels
@aws-cdk/integ-runner
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
The snapshots created by the integ-runner contain the full templates. There is certain fields that are changing (eg. tags, stack metadata, asset ids) that should not trigger a new test.
In normal snapshots tests we use for example https://github.com/hupe1980/jest-cdk-snapshot to avoid adding these volatile fields to the snapshot, but I have found no way to do the same for integration tests.
Use Case
This feature would help us to avoid unneccessary re-runs of integration stacks for unrelated changes.
Proposed Solution
There already seems to be some logic for the template. A way to hook into that, or extending it, to cover use cases like ignoring metadata, assets or tags.
Other Information
No response
Acknowledgements
CDK version used
2.153
Environment details (OS name and version, etc.)
debian - unrelevant
The text was updated successfully, but these errors were encountered: