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.