-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.workerIssues and PRs related to Worker support.Issues and PRs related to Worker support.
Description
What is the problem this feature will solve?
Jest has a --detect-open-handles
flag which attempts to figure out (using async_hooks
) what resources (timer/server etc.) are preventing a test run/node from exiting. To avoid false positives we perform filtering before presenting the list to the user. One of those things is to check if a Timer
has been unrefed
or not, via Timer.hasRef
.
However, Worker
s have no hasRef
, even though they have the {un}ref
pair, so Jest will currently print false positives for Worker
s that have had unref
called.
What is the feature you are proposing to solve the problem?
Add Worker.hasRef
similar to the Timer
API.
What alternatives have you considered?
No response
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.workerIssues and PRs related to Worker support.Issues and PRs related to Worker support.