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

FIX: Ensure all arguments are passed to base fetch function #611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fluggo
Copy link

@fluggo fluggo commented May 15, 2021

This is not a great fix; it ignores that method is only inspected when it's in the first fetch() parameter, and it glosses over the fact that the navigator object, for historical reasons, is very constrained in the responses it gives (which is why the code snagged jsdom in the first place).

It does, however, solve my immediate need of getting fetch-mock to interoperate with jsdom.

Fixes #608

This is not a great fix; it ignores that method is only inspected when it's
in the first fetch() parameter, and it glosses over the fact that the
navigator object, for historical reasons, is very constrained in the
responses it gives (which is why the code snagged jsdom in the first
place).

It does, however, solve my immediate need of getting fetch-mock to
interoperate with jsdom.

Fixes wheresrhys#608
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.

fetch-mock does not forward requests correctly when jsdom-global is in effect
1 participant