Skip to content

Commit 8426bb6

Browse files
author
Brian Vaughn
authored
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).
1 parent e577bfb commit 8426bb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/jest/jest-cli.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ function getCommandArgs() {
261261
if (argv.debug) {
262262
args.unshift('--inspect-brk');
263263
args.push('--runInBand');
264+
265+
// Prevent console logs from being hidden until test completes.
266+
args.push('--useStderr');
264267
}
265268

266269
// CI Environments have limited workers.

0 commit comments

Comments
 (0)