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

overwrite request header to let msw intercept the urql requst. #1

Closed

Conversation

tnyo43
Copy link

@tnyo43 tnyo43 commented Apr 14, 2023

What I did

overwrite the request header of the urql client.

How it works

  1. run npm run storybook
  2. navigate to the "header -> logged in" story and check the console - MSW is enabled and you can find the graphql call is being intercepted

storybook, msw intercepts a graphql call

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