-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Description
π Bug Report
i use prom-client version 12.0.0.
when i run jest --detectOpenHandles
i get
Jest has detected the following 1 open handle potentially keeping Jest from exiting:
β ELDHISTOGRAM
3 | const client = require("prom-client");
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 ELDHISTOGRAM
as open handle
envinfo
$ npx envinfo --preset jest
npx: installed 1 in 2.624s
System:
OS: macOS 10.15.4
CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
Binaries:
Node: 14.2.0 - ~/.nvm/versions/node/v14.2.0/bin/node
npm: 6.14.5 - ~/.nvm/versions/node/v14.2.0/bin/npm
npmPackages:
jest: ^26.0.1 => 26.0.1