[Bug?]: Plug'n'Play causes Jest to detect open handles with some @types/
packages
#3376
Closed
1 task done
Labels
bug
Something isn't working
external bug
This issue highlights a bug in another project
reproducible
This issue can be successfully reproduced
Self-service
Describe the bug
If Plug'n'Play is used, for both Yarn 2 and Yarn 3, Jest will detect open handles inside
.pnp.cjs
for the@types/express
and@types/supertest
packages. Here's the message from Jest:Other
@types/
packages may be affected, though I wasn't able to find any. Most@types/
packages do not appear to be affected by this bug.To reproduce
Below is the closest I could come to creating a reproduction using the Sherlock Playground. Tests took minutes, not seconds, to run, if they even finished running at all. The editor often froze, sometimes it wouldn't allow me to type, many times the test would fail with no output or indication why, results would differ even without changing the code, I occasionally received errors about React, and finally I started receiving "502: Bad Gateway" errors. It was at this point that I gave up.
Instead, I highly recommend taking a look at the GitHub repository I created to reproduce the error using various versions of Yarn with and without Plug'n'Play enabled: https://github.com/WesCossick/reproduce-zlib-open-handle.
Environment
System:
OS: macOS 11.5.2
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Binaries:
Node: 14.17.0 - /private/var/folders/nf/rf7d163x7p3g_jkyzmzx6mv40000gn/T/xfs-9b2da1a6/node
Yarn: 3.0.1 - /private/var/folders/nf/rf7d163x7p3g_jkyzmzx6mv40000gn/T/xfs-9b2da1a6/yarn
npm: 7.20.3 - /usr/local/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: