-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
π 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