nock@15 intercepts raw TCP connections
Author: ddolcimascoloCreated Jul 24, 2026Updated Jul 25, 2026
Labelsbug
Please avoid duplicates
- I checked all open bugs and none of them matched my problem.
Reproducible test case
https://github.com/ddolcimascolo/nock-issue-2994
Nock Version
15.0.0-beta.14
Node Version
24.11.1
TypeScript Version
No response
What happened?
When loaded, Nock prevents the mysql client to open a connection to the database. This looks like it's intercepting the connection somehow.
Would you be interested in contributing a fix?
- yes
Source: nock/nock