You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can tell, this is being caused by the index.js of the module calling client.collectDefaultMetrics(). This in turn calls setInterval(). So the code is kicking off a recurring timer just by requiring the module. The handle for the timer is never returned so there's no way to control it from outside the module. This is an anti-pattern. Instead, export some way for the user to control when (if?) they want to start this timer and provide the handle for the timer back to the user.
Jest is reporting that @echo-health/koa-prometheus-exporter has a handle left open after tests:
The text was updated successfully, but these errors were encountered: