lively-oil-7382
05/15/2020, 2:40 AMlittle-cartoon-10569
05/15/2020, 3:29 AM@pulumi/pulumi/runtime/stack/runInPulumiStack
, but then the resources I create aren't seen by my stack transformation (obviously).runInPulumiStack
, it all works. I feel that shouldn't be necessary, but it'll do for now, I guess...import { runInPulumiStack } from "@pulumi/pulumi/runtime/stack";
runInPulumiStack(() => {
pulumi.runtime.registerStackTransformation(myStackTransformation);
describe('test stuff', function() {
...
});
return new Promise<void>(() => {});
});
Which seems like a lot of boilerplate... 😞lively-oil-7382
05/15/2020, 2:43 PMlittle-cartoon-10569
05/15/2020, 8:42 PMregisterAutoTags
and all the tests inside the same runInPulumiStack
callback. It doesn't have to be in index.js, but it does have to be called from inside the function that's passed as a parameter to runInPulumiStack
.lively-oil-7382
05/18/2020, 8:36 PMimport { runInPulumiStack } from "@pulumi/pulumi/runtime/stack";
runInPulumiStack(() => {
pulumi.runtime.registerStackTransformation(myStackTransformation);
describe('test stuff', function() {
...
});
return new Promise<void>(() => {});
});
little-cartoon-10569
06/09/2020, 8:47 PM