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

testing msw V.2 update #9

Open
4brownie opened this issue Aug 9, 2024 · 1 comment · May be fixed by #10
Open

testing msw V.2 update #9

4brownie opened this issue Aug 9, 2024 · 1 comment · May be fixed by #10

Comments

@4brownie
Copy link

4brownie commented Aug 9, 2024

Working with the new version V.2 of msw, does not react the same as V.1. I have ran into issues with the HttpResponse.json() and not seeing the data returned from const {data, isLoading} = useHook(). I see data is undefined and isLoading true when call is made (expected), the isLoading goes to false after my await waitFor(()=>{}) but I do not see my object return in the data.
Not sure if you are actively using the tanstack/react-query and msw V.2 yet, but if are, would be cool to see how you made it work.

@TkDodo
Copy link
Owner

TkDodo commented Aug 19, 2024

can you try to make a PR that updates to msw v2? I can take a look at the failures then.

@Siemko Siemko linked a pull request Sep 10, 2024 that will close this issue
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 a pull request may close this issue.

2 participants