Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use "isTTY" instead of tty.isatty(fd)
  • Loading branch information
1999 authored Jun 22, 2019
commit f6714e43452b92ef4a4efa54efa2a7fc69ec4cfd
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Original file line number Diff line number Diff line change
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 = Boolean(process.stdout.isTTY) && Boolean(process.stderr.isTTY);

/**
* Save log references to avoid tests interfering (see GH-3604).
Expand Down