https://pulumi.com logo
#general
Title
# general
b

busy-umbrella-36067

03/23/2020, 5:27 PM
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

white-balloon-205

03/23/2020, 5:27 PM
If you call
setMocks
it should automatically enable test mode. Are you seeing otherwise?
b

busy-umbrella-36067

03/23/2020, 5:29 PM
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

tall-librarian-49374

03/23/2020, 8:21 PM
FWIW, I had to set
PULUMI_TEST_MODE
in bash when calling Mocha, otherwise it wouldn’t work