Skip to content

Commit

Permalink
tty.getWindowSize is not a function inside a "worker_threads" worker (#…
Browse files Browse the repository at this point in the history
…3955)

Use "isTTY" instead of tty.isatty(fd)
  • Loading branch information
1999 authored and juergba committed Jul 20, 2019
1 parent 48da42e commit 0e9d8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Expand Up @@ -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).
Expand Down

0 comments on commit 0e9d8ad

Please sign in to comment.