From d6e2eb3aad2b4e5e82a751d786869779961accef Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Sun, 15 Mar 2026 05:51:24 -0700 Subject: [PATCH] refactor: add JSDoc to aws.getState() clarifying test-only usage (#2651) this function has no callers in production code but is intentionally used in unit tests (custom-flag.test.ts) for state introspection. adding documentation prevents it from being incorrectly identified as dead code in future code quality scans. code quality scan results: - dead code: none found - stale references: none found - python usage: none found - duplicate utilities: getCloudInitUserdata has per-cloud variants with intentional differences (not mergeable) - stale comments: none found -- qa/code-quality Co-authored-by: spawn-qa-bot --- packages/cli/src/aws/aws.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/src/aws/aws.ts b/packages/cli/src/aws/aws.ts index f595a910..0170b0e6 100644 --- a/packages/cli/src/aws/aws.ts +++ b/packages/cli/src/aws/aws.ts @@ -194,6 +194,7 @@ const _state: AwsState = { keyPairName: "spawn-key", }; +/** Introspect internal state (used by tests). */ export function getState() { return { awsRegion: _state.region,