Expose API like pulumi.runtime.setMocks
to mock Config
and StackReferences
#16042
Labels
area/testing
customer/feedback
Feedback from customers
kind/enhancement
Improvements or new features
Hello!
Issue details
Ask from user
Improve upon the unit testing experience in Pulumi by exposing an API similar to
pulumi.runtime.setMocks
to mockConfig
andStackReferences
.Additional Details
While it is possible to mock these resources today, it isn't easy. There has been some previous discussion about this experience here as well as overall testing experience feedback in other issues.
Highlighted pain points
newResource
andcall
viapulumi.runtime
, but notStackReferences
andConfig
objects. These are required to be mocked or the test will not conclude.Affected area/feature
Testing SDK
Related issues
#10975
#4472
#9212
The text was updated successfully, but these errors were encountered: