jest icon indicating copy to clipboard operation
jest copied to clipboard

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

Open DmitryMakhnev opened this issue 1 year ago • 3 comments

Version

27+

Steps to reproduce

  • Clone: https://github.com/DmitryMakhnev/jest-runner-loses-error-stack-reproduce
  • Follow instructions in jest-case folder

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

DmitryMakhnev avatar Jul 17 '24 18:07 DmitryMakhnev

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] avatar Aug 16 '24 19:08 github-actions[bot]

Hello @SimenB, Could you please check this issue?

DmitryMakhnev avatar Aug 19 '24 09:08 DmitryMakhnev

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

SimenB avatar Aug 20 '24 07:08 SimenB

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] avatar Sep 19 '24 08:09 github-actions[bot]

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] avatar Oct 19 '24 09:10 github-actions[bot]

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] avatar Oct 19 '24 09:10 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

github-actions[bot] avatar Nov 19 '24 00:11 github-actions[bot]