[Bug]: [jest-runner] loses error `stack` property for failed test when sends a message to jest
Version
27+
Steps to reproduce
- Clone: https://github.com/DmitryMakhnev/jest-runner-loses-error-stack-reproduce
- Follow instructions in
jest-casefolder
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
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.
Hello @SimenB, Could you please check this issue?
Missed this one! Gave it a whack in https://github.com/jestjs/jest/pull/15265
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.
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.
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.
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.