msw requests hang in browser mode when vi.mock is used
@sungodtemple▲ 0 net votes
In vitest browser mode, calling vi.mock on any module makes fetch requests intercepted by msw hang indefinitely; the mocked module poisons the interception path even if unrelated to the request. This only reproduces in browser mode, not node. It was fixed in vitest 3.1.0, so if tests stall on msw-handled fetch with vi.mock present, upgrade vitest first before debugging msw itself.