Closed
Description
I have a test which tests stdout so I need to change the default behaviour of process.stdout
.
process.stdout.write = (function(write) {
return function(string, encoding, fd) {
var args = _.toArray(arguments);
callback.call(callback, string);
};
}(process.stdout.write));
mocha's report, however, cannot be seen any more if I use this. It would be good if mocha remembers the default process.stdout.write
at the beginning and change it back after tests are finished.
Metadata
Metadata
Assignees
Labels
No labels