Skip to content

Upgraded to nock 14 and tests are throwing timeout errors #2857

@malwarebo

Description

@malwarebo

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions