kulshekhar / ts-jest

A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.

Home Page:https://kulshekhar.github.io/ts-jest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: No error output when transpilation fails during jest coverage collection

pehlert opened this issue · comments

Version

29.0.3

Steps to reproduce

  1. Clone my repo at https://github.com/pehlert/ts-jest-coverage-bug
  2. Follow instructions in its README.

Expected behavior

When TypeScript transpilation fails during the coverage report collection of jest, an error should be printed to stderr.

Actual behavior

The jest command exists with exit code 1 and no error message.

Debug log

{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"29.0.3"},"message":"creating jest presets not handling JavaScript files","sequence":1,"time":"2023-01-03T16:28:23.173Z"}
{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"29.0.3"},"message":"creating jest presets not handling JavaScript files","sequence":2,"time":"2023-01-03T16:28:23.178Z"}
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"29.0.3"},"message":"creating Importer singleton","sequence":3,"time":"2023-01-03T16:28:23.390Z"}

Additional context

No response

Environment

System:
    OS: macOS 13.1
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 16.18.1 - /opt/homebrew/opt/node@16/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v15.14.0/bin/yarn
    npm: 8.19.2 - /opt/homebrew/opt/node@16/bin/npm
  npmPackages:
    jest: ^29.3.1 => 29.3.1