This message was deleted.
# general
s
This message was deleted.
w
Wrapping any value in
pulumi.secret
should work here.
w
thanks, i am using
pulumi.secret
, but I want to assert that in my test
e.g. i want to be able to:
Copy code
it("is a secret", function(done) {
    infra.someOutput.isSecretOutput().then(isSecret => {
        assert.ok(isSecret);
        done();
    });
});
or something like that
w
Ahh - I see. Yes - it appears all the helpers that would answer this question are currently internal. It does look like
pulumi.isSecretOutput
is something that should be able to be exposed publicly. Note that you can still use this in the meantime - with something like:
Copy code
(pulumi as any).isSecretOutput(o)
Or for easier usage:
Copy code
const isSecretOutput: (o: Output<any>) => Promise<boolean> = (pulumi as any).isSecretOutput;
Opened https://github.com/pulumi/pulumi/issues/2886.
w
awesome, that's working. thanks!