Debian Codegraph @

docs-next/src/content/docs/reporters/json.mdx

raw
1 ---
2 description: The JSON test reporter for Mocha.
3 title: JSON
4 ---
5
6 Alias: `JSON`, `json`
7
8 The JSON reporter outputs a single large JSON object when the tests have completed (failures or not).
9
10 By default, it will output to the console.
11 To write directly to a file, use `--reporter-option output=filename.json`.
12
13 ![json reporter](./reporter-json.png)