Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix type checks in unit tests #6071

Merged
merged 22 commits into from
May 7, 2024

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented May 7, 2024

Issue

Unblocks #6038

Description

Fixes type checks in unit tests

Testing

All tests except @ts-expect-error for ES2020 are successful in #6052
The @ts-expect-error comments will be removed on bumping TSConfig


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr requested review from a team as code owners May 7, 2024 19:54
@@ -18,7 +18,7 @@ describe(getValidatedProcessCredentials.name, () => {
Expiration: mockExpiration,
});

it.each([undefined, 2])("throws Error when Version is %s", (Version) => {
it.each([2])("throws Error when Version is %s", (Version) => {
Copy link
Contributor

@kuhe kuhe May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this lost case of undefined not useful?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The case is not supported as per TypeScript type definitions.

@trivikr trivikr merged commit 809b7b5 into aws:main May 7, 2024
5 checks passed
@trivikr trivikr deleted the fix-type-check-unit-tests branch May 7, 2024 20:32
@trivikr trivikr mentioned this pull request May 8, 2024
1 task
siddsriv pushed a commit to siddsriv/aws-sdk-js-v3 that referenced this pull request May 8, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants