Skip to content

Jest detects 1 open handle after test run #31

@roberttaylor426

Description

@roberttaylor426

We're using Mockttp with Jest, with the --detectOpenHandles option set, and after our tests complete we're seeing the following warning:

Jest has detected the following 1 open handle potentially keeping Jest from exiting:
  ●  Timeout
      at Object.<anonymous> (node_modules/mockttp/src/util/socket-util.ts:68:5)

Taking a look at the code in question it seems clear why this is happening, but is there a suggested workaround? We'd rather avoid the false-negative.

Happy to raise a PR if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions