pulumi/sdk/nodejs/runtime
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
..
closure serialize default parameters (#6397) 2021-02-25 21:21:10 -08:00
asyncIterableUtil.ts Mark internal APIs `@internal` to filter from API docs (#3809) 2020-01-26 09:06:35 -08:00
config.ts Always read and write nodejs runtime options from/to the environment (#6076) 2021-01-26 14:59:32 -08:00
debuggable.ts support inline programs for nodejs automation api 2020-10-08 12:19:01 -07:00
index.ts support inline programs for nodejs automation api 2020-10-08 12:19:01 -07:00
invoke.ts Enable resource reference feature by default (#5905) 2020-12-10 11:21:05 -07:00
mocks.ts Make `custom` available to `Mocks::newResource` (#6551) 2021-03-25 14:22:14 +11:00
resource.ts Enable resource reference feature by default (#5905) 2020-12-10 11:21:05 -07:00
rpc.ts [sdk/nodejs] Skip re-registrations of same package+version (#6387) 2021-02-20 10:06:32 +11:00
settings.ts Always read and write nodejs runtime options from/to the environment (#6076) 2021-01-26 14:59:32 -08:00
stack.ts Update PulumiStackType comments in dotnet and nodejs (#6028) 2020-12-30 23:02:18 +00:00