https://pulumi.com logo
#aws
Title
# aws
l

little-cartoon-10569

09/28/2022, 11:15 PM
I'm having issues using event mixins (logGroupMixins and s3Mixins) in unit test code. I'm seeing errors like
UnhandledPromiseRejectionWarning: Error: failed to register new resource test [aws:cloudwatch/logSubscriptionFilter:LogSubscriptionFilter]: exports.LogGroup is not a constructor
and
UnhandledPromiseRejectionWarning: Error: failed to register new resource test [aws:lambda/permission:Permission]: exports.Function is not a constructor
Has anyone encountered this sort of thing? And maybe found a solution?
The code that's throwing this are constructors called inside the various
onXEvemt()
mixins. LogGroupEventSubscription and BucketEventSubscription