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]: Error reported when using ts-jest in the pnpm workspace project

dongj0316 opened this issue · comments

Version

29.5.0

Steps to reproduce

1.https://github.com/dongj0316/pnpm-ts-jest-repo
2.pnpm install
3.pnpm test

Expected behavior

test passed

Actual behavior

image

Debug log

{"context":{"allowJs":false,"logLevel":20,"namespace":"jest-preset","package":"ts-jest","version":"29.1.0"},"message":"creating jest presets not handling JavaScript files","sequence":1,"time":"2023-04-26T11:08:47.399Z"}

Additional context

No response

Environment

System:
    OS: macOS 12.6.3
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 16.13.1 - ~/Library/pnpm/node
    Yarn: 1.22.5 - ~/.yarn/bin/yarn
    npm: 8.1.2 - ~/Library/pnpm/npm
  npmPackages:
    jest: ^29.5.0 => 29.5.0

Please ignore, I executed successfully after referring to the example configuration