☕️ Classic, reliable, trusted test framework for Node.js and the browser
added empty object to errorJSON() call to catch when no error is present
Ben Bradleyf364c2d72bab
diff --git a/lib/reporters/json.js b/lib/reporters/json.jsindex d0371201..dcf89e06 100644--- a/lib/reporters/json.js+++ b/lib/reporters/json.js@@ -68,7 +68,7 @@ function clean(test) {title: test.title,fullTitle: test.fullTitle(),duration: test.duration,- err: errorJSON(test.err)+ err: errorJSON(test.err || {})}}