mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Pass Jest useStderr flag when debugging (#21741)
This prevents it from buffering adn suppressing all console logs until a test has completed running (When debugging in Chrome).
This commit is contained in:
@@ -261,6 +261,9 @@ function getCommandArgs() {
|
||||
if (argv.debug) {
|
||||
args.unshift('--inspect-brk');
|
||||
args.push('--runInBand');
|
||||
|
||||
// Prevent console logs from being hidden until test completes.
|
||||
args.push('--useStderr');
|
||||
}
|
||||
|
||||
// CI Environments have limited workers.
|
||||
|
||||
Reference in New Issue
Block a user