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

Include FetchInterceptor in binding of setupServer (enable basic v18 native fetch support) #1

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

Conversation

milesrichardson
Copy link

This is the minimal change to allow using native fetch in node v18. All it does is add another interceptor to createServer. This might not be desirable for package size changes, idk.

This does not depend on mswjs/interceptors#283 but that will allow us to actually test in node v18 and also fix some specific scenarios that don't work out of the box (https I think).

…rver

This actually seems to work fine, even without any tests or changes
necessary. However, for tests to pass with Node v18 and also I think
to support some https cases, the PR from mswjs/interceptors should be merged:

mswjs/interceptors#283
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.

1 participant