Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Added: make json reporter output pretty json

TJ Holowaychukaedaa732aa0a
diff --git a/lib/reporters/json.js b/lib/reporters/json.js
index ef5c2ff8..a699f501 100644
--- a/lib/reporters/json.js
+++ b/lib/reporters/json.js
@@ -48,7 +48,7 @@ function JSONReporter(runner) {
, passes: passes.map(clean)
};
- process.stdout.write(JSON.stringify(obj));
+ process.stdout.write(JSON.stringify(obj, null, 2));
});
}