pulumi/sdk/nodejs/cmd/pulumi-language-nodejs
Fraser Waters d00528918e
Add a conformance test for preserving map keys (#17350)
This adds a conformance test checking we can use map keys like "MY_KEY"
and maintain their casing through program gen. For Python we need to
simplify the type passed to genObjectConsExpression so that we can
reliably determine the target type and check if it's a `TypedDict` or
not, otherwise we might treat it as a plain object and preserve the
keys, instead of `PyName`ing them.

This deletes the "typeddict" test from the codegen tests. Firstly this
is now covered by these conformance tests, secondly it wasn't actually
valid because the schema it was testing against wasn't a valid schema,
and the program snapshot was only how it was because of a bug in
programgen.

That bug is now fixed in this change which fixes
https://github.com/pulumi/pulumi/issues/17294.

---------

Co-authored-by: Julien Poissonnier <julien@caffeine.lu>
2024-10-11 13:34:46 +00:00
..
testdata Add a conformance test for preserving map keys (#17350) 2024-10-11 13:34:46 +00:00
go.mod Don't publish test code in `pkg/codegen` (#17517) 2024-10-09 11:09:54 +00:00
go.sum Don't publish test code in `pkg/codegen` (#17517) 2024-10-09 11:09:54 +00:00
language_test.go Fix language conformance tests for TMPDIR with // (#17524) 2024-10-08 20:57:13 +00:00
main.go Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
main_test.go Allow 'pulumi about' in nodejs projects to resolve dependencies from package files by walking up the file tree (#17239) 2024-09-17 12:23:17 +00:00
proxy.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
proxy_unix.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
proxy_windows.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00