pulumi/sdk/nodejs/tests_with_mocks
Will Jones a9621cfb4e
Fix NodeJS SDK mocking of custom resource reads (#16542)
This commit incorporates the tests introduced by @henriiik in #8585 into
the existing test suite for the NodeJS SDK mocks. SDK mocks provide a
means for users wishing to unit test their Pulumi programs to stub out
various bits of Pulumi behaviour. Previously, those wanting to stub out
resource reads (through `.get` static methods) would encounter crashes
or use untested code paths. With the crashes fixed in previous commits,
this commit adds some tests. Moreover, we fix an error whereby mock
reads force a non-custom (component) resource, when in reality it should
be the other way around (since reads don't make sense for component
resources).

Closes #8585

Co-authored-by: Henrik Sjööh <henriiik@gmail.com>
2024-07-01 16:05:30 +00:00
..
mocks.spec.ts Fix NodeJS SDK mocking of custom resource reads (#16542) 2024-07-01 16:05:30 +00:00