mirror of https://github.com/pulumi/pulumi.git
c1ce3da3e6
This commit adds a new optional parameter to the `newResource` function of the `Mocks` interface for TypeScript. This can be useful when writing tests which assert differing behavior between Custom and Component resources. Although the new parameter will always be set, the paramteter is marked as optional in order to maintain backwards compatibility with existing implementations of `Mocks`. The tests are updated to verify that `custom` is set appropriately. Co-authored-by: Luke Hoban <luke@pulumi.com> |
||
---|---|---|
.. | ||
closure | ||
asyncIterableUtil.ts | ||
config.ts | ||
debuggable.ts | ||
index.ts | ||
invoke.ts | ||
mocks.ts | ||
resource.ts | ||
rpc.ts | ||
settings.ts | ||
stack.ts |