testing-library/react-testing-library

Tests failing when run in parallel

Closed this issue · 3 comments

I'm having an issue with my tests only working when run individually, but not when run together. I have a setup with RTL, Vitest and MSW. When I run a test it works correctly, but when I run a suite with multiple tests, the components get stuck in the loading state, even though I can see that MSW is returning the requested data and the component is receiving it. I should mention I'm on React 19 with Next JS.

I know there are groups for receiving support, but from what I can tell they're not very active (at least based on the Discord).

I'm also facing the same issue while upgrading the React version from 19.0.0 to 19.1.0.

I'm also facing the same issue while upgrading the React version from 19.0.0 to 19.1.0.

I have the same issue on React 19.0 too

Closing because I realized one of the tests was actually failing...