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

[Miniflare 3] Add back support for fetchMock #632

Merged
merged 1 commit into from
Jul 21, 2023
Merged

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Jul 18, 2023

This builds on top of #629, adding back support for undici MockAgents (https://undici.nodejs.org/#/docs/api/MockAgent) via the fetchMock option. This makes it easy to mock outbound fetch() requests in tests. This API is the same as Miniflare 2.

This builds on top of #629, adding back support for `undici`
`MockAgent`s (https://undici.nodejs.org/#/docs/api/MockAgent) via the
`fetchMock` option. This makes it easy to mock outbound `fetch()`
requests in tests. This API is the same as Miniflare 2.
@mrbbot mrbbot requested a review from a team July 18, 2023 14:59
@changeset-bot
Copy link

changeset-bot bot commented Jul 18, 2023

⚠️ No Changeset found

Latest commit: 13b1430

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mrbbot mrbbot merged commit f001a44 into tre Jul 21, 2023
@mrbbot mrbbot deleted the bcoll/tre-fetch-mocking branch July 21, 2023 20:56
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