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

PerformanceObserver open handle #11051

Closed
electriquo opened this issue Feb 4, 2021 · 2 comments Β· Fixed by #11123
Closed

PerformanceObserver open handle #11051

electriquo opened this issue Feb 4, 2021 · 2 comments Β· Fixed by #11123

Comments

@electriquo
Copy link

electriquo commented Feb 4, 2021

πŸ› Bug Report

i use prom-client version 13.1.0.

when i run jest --detectOpenHandles i get

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

  ●  PerformanceObserver

      3 |
      4 | const prefix = "foo";
    > 5 | client.collectDefaultMetrics({ prefix });
        |        ^

To Reproduce

// prom.test.js

const client = require("prom-client");
const prefix = "foo";
client.collectDefaultMetrics({ prefix });
$ npm install prom-client --save
$ npm test prom.test.js

Expected behavior

when running jest --detectOpenHandles, it should not detect PerformanceObserver as open handle and it coincide with #10020

envinfo

$ npx envinfo --preset jest
npx: installed 1 in 2.381s

  System:
    OS: macOS 11.2
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
  Binaries:
    Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
    npm: 6.14.11 - ~/.nvm/versions/node/v14.15.4/bin/npm
  npmPackages:
    jest: ^26.6.3 => 26.6.3
@electriquo
Copy link
Author

@micaelmbagira: thank you!
@SimenB: could you please share when jest next release timeline?

@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 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant