https://pulumi.com logo
Title
g

gorgeous-animal-95046

03/02/2020, 6:18 PM
Is there a way for me to manually create a
pulumi.Output
? I'm trying to unit test a function that accepts this as a function param but I can't grok out how to do this.
g

gorgeous-egg-16927

03/02/2020, 6:22 PM
Yep, you should be able to wrap the input using the
pulumi.output()
function.
const myStringInput = 'foo';
const myStringOutput = pulumi.output(myStringInput);
g

gorgeous-animal-95046

03/02/2020, 6:23 PM
doh! I was using
pulumi.Output(myStringInput)
thanks!
👍 1
g

gorgeous-egg-16927

03/02/2020, 6:24 PM
(
Output
is the type,
output
is the function)
👍 1