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(sdk): fix typescript error in tests #19

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

aloisklink
Copy link
Contributor

Note

This PR is stacked on top of:

Please only merge this PR after those PR has been merged.

Mocking a function with overloaded types wasn't working well and causes TypeScript issues, when using a more strict TypeScript config.

The issue is that the real OAuth2Client.request function has different return types based on their endpoint parameter, and that's not something that's easy to mock, while making TypeScript happy.

Mocking a function with overloaded types wasn't working well.
Copy link

vercel bot commented Mar 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
office-plugin-site ⬜️ Ignored (Inspect) Mar 24, 2024 11:45pm

Base automatically changed from test/make-e2e-sdk-tests-more-configurable to main April 22, 2024 04:04
@aloisklink aloisklink merged commit aa9fbd7 into main Apr 22, 2024
4 checks passed
@aloisklink aloisklink deleted the test/sdk/fix-typescript-error-in-e2e-tests branch April 22, 2024 04:05
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.

2 participants