mirror of https://github.com/pulumi/pulumi.git
a9621cfb4e
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> |
||
---|---|---|
.. | ||
mocks.spec.ts |