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

rest: Adds new ".all()" API #896

Merged
merged 2 commits into from
Sep 6, 2021
Merged

rest: Adds new ".all()" API #896

merged 2 commits into from
Sep 6, 2021

Conversation

kettanaito
Copy link
Member

GitHub

Changes

  • RestHandler now supports RegExp as the expected requests method.
  • Adds a new rest.all() request handler that matches all requests to a given path regardless of their method. Useful when implementing mocking proxies.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 31, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0e28691:

Sandbox Source
MSW React Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding rest.use handler
1 participant