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:
Brian Vaughn
2021-06-23 16:58:46 -04:00
committed by GitHub
parent e577bfb1ce
commit 8426bb6956

View File

@@ -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.