Skip to content

Migrated to AWS SDK v3#18

Open
daninfpj wants to merge 3 commits intoPredictMobile:mainfrom
daninfpj:migrate-aws-sdk-v3
Open

Migrated to AWS SDK v3#18
daninfpj wants to merge 3 commits intoPredictMobile:mainfrom
daninfpj:migrate-aws-sdk-v3

Conversation

@daninfpj
Copy link
Copy Markdown

@daninfpj daninfpj commented Aug 15, 2023

Closes #17.

@daninfpj daninfpj requested a review from warrickhill as a code owner August 15, 2023 17:33
@jckim-jabil
Copy link
Copy Markdown

@warrickhill , can you review this PR and merge ?

@daninfpj
Copy link
Copy Markdown
Author

@warrickhill?

@palafoxernesto
Copy link
Copy Markdown

Hi @warrickhill can we help to merge this? Anything missing?

@daninfpj
Copy link
Copy Markdown
Author

@warrickhill thanks for the approval. However, I still can’t merge it, would you mind?

Only those with write access to this repository can merge pull requests.

@raulHaufe
Copy link
Copy Markdown

@warrickhill could you merge this please?

Merges migrate-aws-sdk-v3 branch and adds 27 focused tests across three
files covering the core logic: profile config parsing (including the new
sso-session resolution), SSO access-token cache reading, and the main
credential-fetch flow (happy path, cached-credential shortcut, expired
creds, missing config, and auto-login trigger).

- lib/index.js: add named exports for unit-testable internal functions
- package.json: add vitest devDependency and `test` script
- test/getConfigForProfile.test.js: 10 pure-logic unit tests
- test/getAccessToken.test.js: 8 tests with fs mocking
- test/main.test.js: 9 integration tests with full dependency mocking

https://claude.ai/code/session_01CTx64ZxshU2LqM6jKGjKxo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to AWS SDK for Javascript (v3)

7 participants