-
Notifications
You must be signed in to change notification settings - Fork 582
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
Conversation
…EndpointPartition'
@@ -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) => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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. |
Issue
Unblocks #6038
Description
Fixes type checks in unit tests
Testing
All tests except
@ts-expect-error
for ES2020 are successful in #6052The
@ts-expect-error
comments will be removed on bumping TSConfigBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.