pulumi/sdk/nodejs/runtime
Thomas Gummerer b5077dc7d3
fix MockMonitor reporting DeletedWith wasn't supported (#14118)
We should support all features in mocks that we are supporting
otherwise. We did a similar thing in pulumi-dotnet:
https://github.com/pulumi/pulumi-dotnet/pull/93.

However here we're not simply changing hasSupport to true.
1e09626bc7
has a good explanation of why we only support specific values here.
However really we only need to disable support for `outputValues`, and
that only if output values are disabled. Originally this was true if
`PULUMI_ENABLE_OUTPUT_VALUES` was set, but that environment variable was
later inverted: 3027d01f25.

This ended up being a little bit more complicated than just passing
true, but I think it's more correct this way. I'm also happy to change
it back to just passing through `true` if that's preferred. Once we
decided on whether this is the right way to do it vs. just passing
`true` unconditionally I'll also update `java` and `dotnet` (if we're
going this way) to do the same.

Fixes #13355

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2023-10-09 14:21:54 +00:00
..
closure [sdk/nodejs] closure serializtion, lookup package.json from current directory up to parent directories (#13770) 2023-08-25 17:01:20 +00:00
asyncIterableUtil.ts Apply autoformat 2023-04-28 18:27:10 -04:00
config.ts Apply autoformat 2023-04-28 18:27:10 -04:00
debuggable.ts Use existing PULUMI_DEBUG_PROMISE_LEAKS=1 flag to enable printing 2023-06-15 07:43:05 -07:00
index.ts Add support for async mocks in TS 2023-06-01 13:58:53 +02:00
invoke.ts Eliminate unnecessary double negations. 2023-05-09 18:35:59 -04:00
mocks.ts fix MockMonitor reporting DeletedWith wasn't supported (#14118) 2023-10-09 14:21:54 +00:00
resource.ts [sdk/*] Add support for resource source positions 2023-07-13 16:46:04 -07:00
rpc.ts Use existing PULUMI_DEBUG_PROMISE_LEAKS=1 flag to enable printing 2023-06-15 07:43:05 -07:00
settings.ts Eliminate assignment statements used as expressions. 2023-05-15 19:48:47 -04:00
stack.ts Warn about undefined stack outputs 2023-07-28 14:33:04 +01:00
state.ts Apply autoformat 2023-04-28 18:27:10 -04:00