Skip to content

armgit / mocha

Public Imported from GitHub
0

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

small tweak to clean() to show failure deatils

Ben Bradley305f4eadf3bb
diff --git a/lib/reporters/json.js b/lib/reporters/json.js
index a699f501..85d5e2db 100644
--- a/lib/reporters/json.js
+++ b/lib/reporters/json.js
@@ -66,5 +66,6 @@ function clean(test) {
title: test.title
, fullTitle: test.fullTitle()
, duration: test.duration
+ , err: test.err || undefined
}
-}
\ No newline at end of file
+}