Mocks allows implementations to replace operations normally implemented by the Pulumi engine with their own implementations. This can be used during testing to ensure that calls to provider functions and resource constructors return predictable values.

interface Mocks {
    call(args): MockCallResult | Promise<MockCallResult>;
    newResource(args): MockResourceResult | Promise<MockResourceResult>;
}

Methods

Generated using TypeDoc