For the new mocking support, how is it toggled? I...
# general
b
For the new mocking support, how is it toggled? I see
PULUMI_TEST_MODE
mentioned so I’m guessing thats an env var, is there any other way to toggle it?
pulumi.runtime.setConfig()
?
w
If you call
setMocks
it should automatically enable test mode. Are you seeing otherwise?
b
Just trying to figure out implementation for now. We’re trying to bundle integration testing into a
pulumi.ComponentResource
method and need to invoke them without the Pulumi CLI
t
FWIW, I had to set
PULUMI_TEST_MODE
in bash when calling Mocha, otherwise it wouldn’t work