Skip to content

Commit 2672f6e

Browse files
cexbrayatalan-agius4
authored andcommitted
fix(@angular/build): json and json-summary as vitest coverage reporters
They can be quite handy for analysis tools. See https://github.com/vitest-dev/vitest/blob/93f3200e452874ed4e2d018718bbbde7ebd28590/test/coverage-test/test/configuration-options.test-d.ts#L152 for all the current valid options
1 parent c19cd29 commit 2672f6e

File tree

1 file changed

+10
-1
lines changed
  • packages/angular/build/src/builders/unit-test

1 file changed

+10
-1
lines changed

packages/angular/build/src/builders/unit-test/schema.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,16 @@
9898
"required": ["buildTarget", "tsConfig", "runner"],
9999
"definitions": {
100100
"coverage-reporters": {
101-
"enum": ["html", "lcov", "lcovonly", "text", "text-summary", "cobertura"]
101+
"enum": [
102+
"html",
103+
"lcov",
104+
"lcovonly",
105+
"text",
106+
"text-summary",
107+
"cobertura",
108+
"json",
109+
"json-summary"
110+
]
102111
}
103112
}
104113
}

0 commit comments

Comments
 (0)