Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Update json-stream.js

Jonathan Delgadof4d754b99133
diff --git a/lib/reporters/json-stream.js b/lib/reporters/json-stream.js
index f7c05a89..8fd91ce7 100644
--- a/lib/reporters/json-stream.js
+++ b/lib/reporters/json-stream.js
@@ -36,6 +36,7 @@ function List(runner) {
runner.on('fail', function(test, err){
test = clean(test);
test.err = err.message;
+ test.stack = err.stack || null;
console.log(JSON.stringify(['fail', test]));
});