Open eps1lon opened 2 years 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 7 days.
Comment
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.
Comment
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.
bump
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.
bump
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.
Comment
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.
42
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.
Still an issue that needs attention -- the displayed order of console.log messages is a real pain when working with Jest output. Why no response from the maintainers?
This sounds like it can just be a custom reporter. Or possibly configuration for the built in reporters?
š Feature Proposal
Make
console.*
more useful when focusing on a single test by either:console.*
calls below the test summaryMotivation
Especially in large test suites I usually focus on a single test when working on a bug/feature. In some cases (e.g. new codebase, simple debugging instructions) I prefer to use
console.*
methods.However, Jest currently displays them before the test summary which means I have to constantly scroll back up or, even worse, in the case of test failures I have to scroll between bottom (for the failure) and top (for the log).
Example
In the React codebase (51947a14bb24bd151f76f6fc0acdbbc404de13f7) with
Notice the, in my opinion, wasted space by the list of skipped tests.
Related issues: https://github.com/facebook/jest/issues/2169
Pitch
The current behavior encourages small test files or straight up not focusing on a single test. However, iteration speed for debugging is very important so people may be hesitant to add more tests due to Jest becoming harder to read when focusing on a single test.