https://pulumi.com logo
#typescript
Title
# typescript
r

rough-window-15889

05/17/2022, 6:56 PM
I am having difficulty with my mocha unit test. I got my mocks set up and working but I hit a promise leak when I get to a stack reference. Is there an easy way to mock/stub a stack reference?
I found an issue opened related to this https://github.com/pulumi/pulumi/issues/9212 Anyone have a workaround?
Update: I did a workaround using sinon and stubbing requireOutput on the StackReference.