☕️ Classic, reliable, trusted test framework for Node.js and the browser
tty.getWindowSize is not a function inside a "worker_threads" worker (#3955)
Dmitrii Sorin0e9d8ad59a78
diff --git a/lib/reporters/base.js b/lib/reporters/base.jsindex 670a160f..b1d026fc 100644--- a/lib/reporters/base.js+++ b/lib/reporters/base.js@@ -25,7 +25,7 @@ exports = module.exports = Base;* Check if both stdio streams are associated with a tty.*/-var isatty = tty.isatty(1) && tty.isatty(2);+var isatty = process.stdout.isTTY && process.stderr.isTTY;/*** Save log references to avoid tests interfering (see GH-3604).