-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed as not planned
Description
🐛 Bug Report
The ReporterDispatcher overrides TestResult.console property with undefined. As a result of this - the console output cannot be used in custom reporters like jest-junit.
To Reproduce
This behaviour is visible in the source code in version @jest core 24.8.0.
// Release memory if unused later.
testResult.sourceMaps = undefined;
testResult.coverage = undefined;
testResult.console = undefined;Expected behavior
The console output should be forwarded to the test reporters. But first we have to check for what reason the console property is set to undefined.
Link to repl or repo (highly encouraged)
Steps to reproduce the 'error':
- Clone the project https://github.com/jkblume/simple-app and step into it
- npm install
- npm run test
If you debug the code or add some debug outputs you notice that the TestResult.console property is defined - but after passing the ReporterDispatcher it is set to undefined