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
chore: don't add the same Aspect more than once (#32880)
There is no observable behavior from adding the same Aspect more than
once at the same priority, but we are adding multiple
`AspectApplication`s for it (and then only executing once).
Make the proptest results a bit easier to read by not allowing this in
the first place.
----
*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*
expect(root.node.metadata[0].data).toEqual('We detected an Aspect was added via another Aspect, and will not be applied [ack: @aws-cdk/core:ignoredAspect]');
93
107
// warning is not added to child construct
94
-
expect(child.node.metadata.length).toEqual(0);
108
+
expect(child.node.metadata).toEqual([]);
95
109
});
96
110
97
111
test('Do not warn if an Aspect is added directly (not by another aspect)',()=>{
0 commit comments