[Bug]: ts-jest[ts-compiler] (WARN) Unable to process '/node_modules/.pnpm/wouter@3.3.1_react@18.3.1/node_modules/wouter/esm/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /node_modules/.pnpm/wouter@3.3.1_react@18.3.1/node_modules/wouter/esm/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'` #4575
It should transform the js file from wouter using import.
Actual behavior
/node_modules/.pnpm/wouter@3.3.1_react@18.3.1/node_modules/wouter/esm/index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { parse } from 'regexparam';
^^^^^^
SyntaxError: Cannot use import statement outside a module
ts-jest[ts-compiler] (WARN) Unable to process 'node_modules/.pnpm/wouter@3.3.1_react@18.3.1/node_modules/wouter/esm/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore node_modules/.pnpm/wouter@3.3.1_react@18.3.1/node_modules/wouter/esm/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
I have the same problem, since updating to 29.2.5 running tests with jest fails on:
/node_modules/react-dnd/dist/index.js:2
export * from './core/index.js';
^^^^^^
Version
29.2.5
Steps to reproduce
Clone https://github.com/Grsz/ts-jest-repro Run
pnpm i
Runpnpm test
Expected behavior
It should transform the js file from wouter using import.
Actual behavior
Debug log
Too long, github doesn't let submit it.
Additional context
No response
Environment