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).
Brian Vaughn committed
Jun 23, 2021 at 16:58 UTC
8426bb6956fb12279c458e69fbfc62fbb04a621c
1 file changed
+3
scripts/jest/jest-cli.js
+3
@@ -261,6 +261,9 @@ function getCommandArgs() {
261
if (argv.debug) {
262
args.unshift('--inspect-brk');
263
args.push('--runInBand');
264
+
265
+ // Prevent console logs from being hidden until test completes.
266
+ args.push('--useStderr');
267
}
268
269
// CI Environments have limited workers.