Is there a way for me to manually create a `pulumi...
# typescript
g
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
Yep, you should be able to wrap the input using the
pulumi.output()
function.
Copy code
const myStringInput = 'foo';
const myStringOutput = pulumi.output(myStringInput);
g
doh! I was using
pulumi.Output(myStringInput)
thanks!
👍 1
g
(
Output
is the type,
output
is the function)
👍 1