From 8426bb6956fb12279c458e69fbfc62fbb04a621c Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 23 Jun 2021 16:58:46 -0400 Subject: [PATCH] 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). --- scripts/jest/jest-cli.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/jest/jest-cli.js b/scripts/jest/jest-cli.js index ed2e6822f3..0e916c07c4 100644 --- a/scripts/jest/jest-cli.js +++ b/scripts/jest/jest-cli.js @@ -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.