pulumi/sdk/nodejs/tests
Pat Gavlin 248f78bafe [sdk/*] Add support for resource source positions
Add support to the core SDKs for reporting resource source positions.

In each SDK, this is implemented by crawling the stack when a resource
is registered in order to determine the position of the user code that
registered the resource.

This is somewhat brittle in that it expects a call stack of the form:
- Resource class constructor
- abstract Resource subclass constructor
- concrete Resource subclass constructor
- user code

This stack reflects the expected class hierarchy of "cloud resource /
component resource < customresource/componentresource < resource".

For example, consider the AWS S3 Bucket resource. When user code
instantiates a Bucket, the stack will look like
this in NodeJS:

    new Resource (/path/to/resource.ts:123:45)
    new CustomResource (/path/to/resource.ts:678:90)
    new Bucket (/path/to/bucket.ts:987:65)
    <user code> (/path/to/index.ts:4:3)

In order to determine the source position, we locate the fourth frame
(the `<user code>` frame).
2023-07-13 16:46:04 -07:00
..
automation deps(go): Upgrade to grpc 1.56.1 2023-07-06 09:04:16 -07:00
mockpackage Apply autoformat 2023-04-28 18:27:10 -04:00
runtime [sdk/*] Add support for resource source positions 2023-07-13 16:46:04 -07:00
sxs_ts_test [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
config.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
constants.ts ci: improve x-plat testing on Windows 2022-03-06 14:45:26 -08:00
init.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
iterable.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
options.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
output.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
provider.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
resource.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
stackReference.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
unwrap.spec.ts Apply autoformat 2023-04-28 18:27:10 -04:00
util.ts Apply autoformat 2023-04-28 18:27:10 -04:00