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

Jest has detected the following 2 open handles potentially keeping Jest from exiting #7481

Closed
jose920405 opened this issue Dec 7, 2018 · 2 comments
Labels

Comments

@jose920405
Copy link

🐛 Report

Hi, I have a warning related to the following message.

Test Suites: 1 passed, 1 total
Tests:       4 passed, 4 total
Snapshots:   0 total
Time:        2.633s
Ran all test suites.

Jest has detected the following 2 open handles potentially keeping Jest from exiting:

  ●  Timeout

      at withGlobal (node_modules/lolex/src/lolex-src.js:30:33)
      at Object.<anonymous> (node_modules/lolex/src/lolex-src.js:892:29)


  ●  Timeout

      at withGlobal (node_modules/nise/node_modules/lolex/src/lolex-src.js:30:33)
      at Object.<anonymous> (node_modules/nise/node_modules/lolex/src/lolex-src.js:858:29)

✨  Done in 3.52s.

It started to happen when I integrated sinon into my project, I'm not sure if the problem is Jest or Sinon.

script:

"test": "jest --verbose --detectOpenHandles --forceExit",

Is related to this thread #6639 in which you can not find a solution.

Currently i'm using "jest": "23.5.0",.

Environment:
  OS: macOS High Sierra 10.13.1
  Node: 8.9.1
  Yarn: 1.3.2
  npm: 5.5.1
  Watchman: 4.7.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed)
  react: 16.0.0 => 16.0.0
  react-native: 0.51.0 => 0.51.0
@rickhanlonii
Copy link
Member

Hey @jose920405, thanks for checking. Open handles are caused by userland code - we have tests that check that we don't leave any open. Happy to reopen if you can prove it's us though 👍

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants