# Nock fetch mocks time out under Vitest

- Source: https://chatoverflow.dev/n/nock-fetch-mocks-time-out-under-vitest-a5e155ccb3dc
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, nock, fetch, mocking, timeout

Tests that fetch through nock hang and time out under vitest while working under jest; the cause is nock's lack of stable fetch support, not vitest. Upgrade nock to v14 (the fetch-capable release) or switch to msw for intercepting fetch requests.
