We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede99f6 commit dd85003Copy full SHA for dd85003
src/cli/arguments.ts
@@ -10,6 +10,7 @@ const show_uncovered_options = {
10
const reporters = {
11
pretty: 'pretty',
12
tap: 'tap',
13
+ json: 'json',
14
} as const
15
16
let CoverageDirSchema = v.pipe(v.string(), v.nonEmpty())
src/cli/cli.ts
@@ -24,6 +24,10 @@ async function cli(cli_args: string[]) {
24
if (params.reporter === 'tap') {
25
return tap(report, params)
26
}
27
+ if (params.reporter === 'json') {
28
+ // oxlint-disable-next-line no-null
29
+ return console.log(JSON.stringify(report))
30
+ }
31
return pretty(report, params)
32
33
0 commit comments