diff --git a/lib/output-collapsed.js b/lib/output-collapsed.js index d3758ae..fc6eb9a 100644 --- a/lib/output-collapsed.js +++ b/lib/output-collapsed.js @@ -22,6 +22,7 @@ exports.emit = function emitCollapsed(args, callback) 'required "output" argument must be a function'); args.stacks.eachStackByCount(function (frames, count) { - process.stdout.write(frames.join(',') + ' ' + count + '\n'); + args.output.write(frames.join(',') + ' ' + count + '\n'); }); + callback(); };