jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.28k stars 6.47k forks source link

[Bug]: [jest-runner] loses error `stack` property for failed test when sends a message to jest #15196

Closed DmitryMakhnev closed 4 weeks ago

DmitryMakhnev commented 4 months ago

Version

27+

Steps to reproduce

Expected behavior

Error stack property of AssertionResult.failureDetails of TestResult.testResults in reporter's onTestResult() method for failed test exists

Actual behavior

Error stack property of AssertionResult.failureDetails of TestResult.testResults in reporter's onTestResult() method for failed test doesn't exists

Additional context

It can be important for tests reporters. Hypothesized root cause of the issue

Environment

System:
  OS: macOS Sonoma version 14.4.1
  CUP: Apple M1 Max
Binaries:
  Node.js: 21.0.0 –  /Users/Dmitry.Makhnev/.nvm/versions/node/v21.0.0/bin/node
  npm: 10.2.0 – /Users/Dmitry.Makhnev/.nvm/versions/node/v21.0.0/bin/npm
npmPackages:
  jest: 27.5.1
github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

DmitryMakhnev commented 3 months ago

Hello @SimenB, Could you please check this issue?

SimenB commented 3 months ago

Missed this one! Gave it a whack in https://github.com/jestjs/jest/pull/15265

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 4 weeks ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] commented 4 weeks ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.