I have a transformation function which extends the...
# typescript
l
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
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...