Running Jest after switching to ESM shows the error below. "got" is the only package I have that uses http2-wrapper, so it seems like the prime suspect. I will do more research on how to properly mock it or close it as I'm sure there is an easy fix but I couldn't find it in the existing issues.
Jest has detected the following 1 open handle potentially keeping Jest from exiting:
β JSSTREAM
at Object.<anonymous> (../node_modules/http2-wrapper/source/utils/js-stream-socket.js:6:25)
at Object.<anonymous> (../node_modules/http2-wrapper/source/proxies/h1-over-h2.js:5:24)
at Object.<anonymous> (../node_modules/http2-wrapper/source/index.js:13:5)
No open handles
yarn node --loader ts-node/esm/transpile-only --experimental-vm-modules $(yarn bin jest) --config jest.config.js --verbose --detectOpenHandles
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too