fix: mock fromTemporaryCredentials at module boundary instead of nested STS client

Replace the @aws-sdk/nested-clients/sts mock with a mock of
fromTemporaryCredentials itself. This avoids depending on AWS SDK
internal implementation details while still verifying that the correct
role ARN, session name, and external ID are passed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-06 14:46:17 +01:00
parent 6c865dbd1d
commit 3b38dd0249
2 changed files with 772 additions and 1961 deletions
+702 -1897
View File
File diff suppressed because it is too large Load Diff