Skip to content

Commit 5d18965

Browse files
committed
Rollback unnecessary change which drops coverage
Check if process.stdout is available was added based on xunit reporter example. However this branch is not covered by test and previously this was not present in json reporter nor json-stream reporter.
1 parent 97b0b70 commit 5d18965

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/reporters/json.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ function JSONReporter(runner, options) {
8282
if (output) {
8383
fs.mkdirSync(path.dirname(output), {recursive: true});
8484
fs.writeFileSync(output, json);
85-
} else if (typeof process === 'object' && process.stdout) {
86-
process.stdout.write(json);
8785
} else {
88-
Base.consoleLog(json);
86+
process.stdout.write(json);
8987
}
9088
});
9189
}

0 commit comments

Comments
 (0)