Skip to content

[Bug]: Typescript compilation errors cause Jest to hang silently #3507

@niekvandepas

Description

@niekvandepas

Version

28.0.1

Steps to reproduce

  1. Close repo at https://github.com/NiekPas/jest-hangs.git
  2. Run npm i
  3. Run npm run test

Expected behavior

I expect to see a compilation error or other indication that the test could not be run.

Actual behavior

Jest hangs indefinitely.

Debug log

See gist.

Additional context

(Moved from jest: jestjs/jest#12832)

Could this be due to the use of ESM?

Environment

System:
    OS: macOS 12.2.1
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  Binaries:
    Node: 14.19.1 - ~/.nvm/versions/node/v14.19.1/bin/node
    npm: 6.14.16 - ~/.nvm/versions/node/v14.19.1/bin/npm
  npmPackages:
    jest: ^28.0.3 => 28.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions