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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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.