Skip to content

Jest can hang indefinitely in node 12 #9729

@pllee

Description

@pllee

🐛 Bug Report

Jest can hang indefinitely in node 12. I have seen this issue in docker and on osx.

To Reproduce

Steps to reproduce the behavior:

Call a library like get-port-sync during a jest run on node 12. I think deasync could be triggering this but I am not sure.

Expected behavior

Link to repl or repo (highly encouraged)

https://github.com/pllee/jest-get-port-sync

> [email protected] log-port /jest-get-port-sync
> node -v && node log-port

v10.19.0
60199
[email protected] log-port /jest-get-port-sync
> node -v && node log-port

v12.16.1
59872
> node -v && jest

v10.19.0
 PASS  ./getPort.test.js
  ✓ gets a port sync (6ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        1.517s
Ran all test suites.
> [email protected] test /jest-get-port-sync
> node -v && jest

v12.16.1

 RUNS  ./getPort.test.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions