diff --git a/lib/reporters/json.js b/lib/reporters/json.js index d05bd73d76..ead181b4e8 100644 --- a/lib/reporters/json.js +++ b/lib/reporters/json.js @@ -82,10 +82,8 @@ function JSONReporter(runner, options) { if (output) { fs.mkdirSync(path.dirname(output), {recursive: true}); fs.writeFileSync(output, json); - } else if (typeof process === 'object' && process.stdout) { - process.stdout.write(json); } else { - Base.consoleLog(json); + process.stdout.write(json); } }); }