#2857·nock

Upgraded to nock 14 and tests are throwing timeout errors

Author: malwareboCreated Apr 30, 2025Updated Jan 15, 2026
Labelsbugawaiting response

Please avoid duplicates

Reproducible test case

NA

Nock Version

14.0.4

Node Version

v22.11.0

TypeScript Version

5.8.3

What happened?

I am trying to upgrade from nock 13.5.0 to nock 14.0.4 and I am seeing test failures with timeout errors. I traced back to different versions and it starts happening after @mswjs/interceptors was introduced in v14.0.0-beta.14

bash
Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

The test suite runs Mocha and Chai.

Would you be interested in contributing a fix?

  • yes