Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: Plug'n'Play causes Jest to detect open handles #3719

Closed
1 task
ziggy6792 opened this issue Nov 10, 2021 · 1 comment
Closed
1 task

[Bug?]: Plug'n'Play causes Jest to detect open handles #3719

ziggy6792 opened this issue Nov 10, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ziggy6792
Copy link

ziggy6792 commented Nov 10, 2021

Self-service

  • I'd be willing to implement a fix

Describe the bug

After migrating to Yarn v2 with pnp I get warnings when I run my jest tests
Jest has detected the following 28 open handles potentially keeping Jest from exiting:

  ●  ZLIB

      35991 |           });
      35992 |         } else {
    > 35993 |           const decompressedData = external_zlib_default().inflateRawSync(data);
            |                                                            ^
      35994 |           this.fileSources.set(index, decompressedData);
      35995 |           return decompressedData;
      35996 |         }

      at ZipFS.getFileSource (../../.pnp.cjs:35993:60)
      at ZipFS.readFileBuffer (../../.pnp.cjs:36337:17)
      at ZipFS.readFileSync (../../.pnp.cjs:36322:23)
      at ../../.pnp.cjs:37222:20
      at ../../.pnp.cjs:37338:58
      at ZipOpenFS.getZipSync (../../.pnp.cjs:37497:14)
      at ZipOpenFS.makeCallSync (../../.pnp.cjs:37338:17)
      at ZipOpenFS.readFileSync (../../.pnp.cjs:37210:17)
      at VirtualFS.readFileSync (../../.pnp.cjs:34551:26)
      at PosixFS.readFileSync (../../.pnp.cjs:34551:26)
      at URLFS.readFileSync (../../.pnp.cjs:34551:26)
      at Object.<anonymous> (../../.yarn/__virtual__/@typegoose-typegoose-virtual-49617552b9/0/cache/@typegoose-typegoose-npm-9.0.1-fea7ea2ec0-8a3a767513.zip/node_modules/@typegoose/typegoose/src/typegoose.ts:21:1)
      at Object.<anonymous> (../lambda-gq-resolver/src/resolvers/user.resolver.test.ts:2:1)

Seems to be the issue as reported here

To reproduce

I can create a sample repo if needed.
However one have already been provided here and a sample repo here

Environment

System:
    OS: macOS 11.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.3.0 - /private/var/folders/3g/_cc094fn55ldf2zjstjbq5hr0000gn/T/xfs-4b018e45/node
    Yarn: 3.1.0 - /private/var/folders/3g/_cc094fn55ldf2zjstjbq5hr0000gn/T/xfs-4b018e45/yarn
    npm: 7.15.1 - ~/.nvm/versions/node/v16.3.0/bin/npm

Additional context

I am very sorry if you are already working on this issue but I couldn't find it under https://github.com/yarnpkg/berry/issues

Also I am not sure if this is a problem with yarn or a problem with jest

@ziggy6792 ziggy6792 added the bug Something isn't working label Nov 10, 2021
@arcanis
Copy link
Member

arcanis commented Nov 10, 2021

Duplicate of #3376

@arcanis arcanis marked this as a duplicate of #3376 Nov 10, 2021
@arcanis arcanis closed this as completed Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants