pulumi/sdk/nodejs/tests_with_mocks
James Nugent c1ce3da3e6
Make `custom` available to `Mocks::newResource` (#6551)
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>
2021-03-25 14:22:14 +11:00
..
mocks.spec.ts Make `custom` available to `Mocks::newResource` (#6551) 2021-03-25 14:22:14 +11:00