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: AggregatedResult must be present after test run is complete

unional opened this issue · comments

Version

29.0.3

Steps to reproduce

  1. clone https://github.com/repobuddy/jest
  2. git checkout ts-cjs-err
  3. pnpm install
  4. pnpm build
  5. pnpm ts-cjs test

Expected behavior

Able to run tests

Actual behavior

Failed with:

Error: AggregatedResult must be present after test run is complete
    at runCLI (D:\code\repobuddy\jest\node_modules\.pnpm\@jest+core@29.3.1\node_modules\@jest\core\build\cli\index.js:208:11)
    at async Object.run (D:\code\repobuddy\jest\node_modules\.pnpm\jest-cli@29.3.1\node_modules\jest-cli\build\run.js:124:37)

Debug log

No logs. It fails before start

Additional context

It works in Linux, but not in Windows.

Environment

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
  Binaries:
    Node: 16.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    jest: ^29.3.1 => 29.3.1
commented

Please open this for Jest repo. This error is not transformer error therefore it's unrelated to ts-jest.