curved-army-44908
08/21/2025, 2:45 PMmammoth-restaurant-4670
08/21/2025, 6:04 PMlittle-cartoon-10569
08/21/2025, 8:49 PMpulumi.output()
is definitely ok, but pulumi.registerStackTransformation()
is probably best avoided in tested code.
This hasn't ever been a problem for us: we only ever test component resources, and none of those functions are used in component resources.curved-army-44908
08/22/2025, 7:28 AMpulumu.output
?
@mammoth-restaurant-4670 We got inspirations from this repo and we could some small tests that look like those ones. However, when we start to have multiples conditions in our runtime mock function, we start to observe that we don't always have the same output when we execute the function and we were wondering if there is something we can do to avoid this behaviorlittle-cartoon-10569
08/22/2025, 8:08 AMlittle-cartoon-10569
08/22/2025, 8:10 AMsetMocks()
that cause the problem. We don't generally have much in there; just setting up availability zones so that the AWS provider works.