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 23 test does not terminate on docker #6425

Closed
bugzpodder opened this issue Jun 9, 2018 · 2 comments
Closed

Jest 23 test does not terminate on docker #6425

bugzpodder opened this issue Jun 9, 2018 · 2 comments

Comments

@bugzpodder
Copy link

bugzpodder commented Jun 9, 2018

🐛 Bug Report

I used --detectOpenHandles to investigate why jest tests does not exit after completion.
Got the following error. So far this only repos in a docker container and on AppVeyor under windows environment.

System:
OS: Linux 4.9 Debian GNU/Linux 8 (jessie) 8 (jessie)
CPU: x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
Binaries:
Node: 8.11.2 - /usr/local/bin/node
Yarn: 1.6.0 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm

Got the following error:

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

● PROMISE

  at Function.resolve (<anonymous>)

at Object. (node_modules/lodash.sortby/index.js:1808:32)
at Object. (node_modules/whatwg-url/lib/URLSearchParams-impl.js:2:22)

This seem to be the actual line, any idea on why this is happening?
https://github.com/lodash/lodash/blob/d10b44bdef2b735865c493fbaec8687ec8998aef/.internal/getTag.js#L30

PR this was reproduced on: facebook/create-react-app#4550

@bugzpodder
Copy link
Author

Ended up resolving this by calling window.close() in jsdom.

@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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant