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

chore(jest-runner): Add info regarding timers to forceExited message #12083

Merged
merged 1 commit into from Nov 26, 2021

Commits on Nov 24, 2021

  1. chore(jest-runner): Add info regarding timers to forceExited message

    When a test finishes while a Node.js timer is still active, the worker
    process will have to be force-killed by jest because the active timer
    will keep the event loop alive.
    
    It is often not immediately clear that such timers are the issue for this
    message and the suggested method of `--detectOpenHandles` will never
    detect them. Add a helpful message to point the user to this potential
    issue.
    
    Ref: https://nodejs.org/api/timers.html#timeoutunref
    silverwind committed Nov 24, 2021
    Copy the full SHA
    0140aa0 View commit details
    Browse the repository at this point in the history