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

limited-rainbow-51650

11/09/2021, 4:30 PM
I have a transformation function which extends the
env
section of a k8s
Deployment
. The value of one of the env variables, set by the transformation function, is an Output. I now want to test that the function added the right key-value pairs. Anyone have an example handy on how to unit test such a transformation function? I struggle again with the async behaviour of Inputs & Outputs.
l

little-cartoon-10569

11/09/2021, 8:35 PM
This is what I'm using. It doesn't address the problem that the transformed value is an output (since I don't have anything like that) but maybe you can adapt it?
Huh, looks like there's a bug in the typescript renderer...