☕️ Classic, reliable, trusted test framework for Node.js and the browser
Alter feature detection
John Reeves3134ea45e20e
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.jsindex a61e0bc7..01d9d878 100644--- a/lib/reporters/xunit.js+++ b/lib/reporters/xunit.js@@ -109,7 +109,7 @@ XUnit.prototype.done = function(failures, fn) {XUnit.prototype.write = function(line) {if (this.fileStream) {this.fileStream.write(line + '\n');- } else if (typeof process === 'object' && typeof process.stdout === 'object') {+ } else if (typeof process === 'object' && process.stdout) {process.stdout.write(line + '\n');} else {console.log(line);