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

Infer the Mock Type for Global Fetch #245

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Conversation

ronny1982
Copy link
Contributor

@ronny1982 ronny1982 commented Oct 12, 2023

Workaround for type incompatibility caused by nodejs/undici#1947
Always use the same type as global.fetch for our mock

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 12, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: f0a562a
Status: ✅  Deploy successful!
Preview URL: https://2fc4cf6f.haruneko.pages.dev
Branch Preview URL: https://fix-fetch-type-conflict.haruneko.pages.dev

View logs

@ronny1982 ronny1982 changed the title Allow URL Type as Request Initializer Infer the Mock Type for Global Fetch Oct 12, 2023
@MikeZeDev
Copy link
Contributor

That fix is indeed correcting the Github syntax check error caused by undici update, as checks are passed.

After forcing modules updates on my end, for diagnosis purposes, i had the error, and with this fix i cant reproduce the error anymore.

Now, i fail to see the consequences of this fix. All i can say is "that works".

Copy link
Contributor

@MikeZeDev MikeZeDev left a comment

Choose a reason for hiding this comment

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

Fixes the problem with undici, with unknown consequences (maybe none)

@ronny1982 ronny1982 merged commit 6b526c4 into master Oct 12, 2023
3 of 4 checks passed
@ronny1982 ronny1982 deleted the fix-fetch-type-conflict branch October 12, 2023 17:54
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