Skip to content

Commit 7165324

Browse files
committed
fix(@angular/build): remove default for unit-test coverage option
Removing the default value of `false` for the `coverage` schema option in the unit-test builder. When a default was present, it forced the coverage check in the Vitest plugins to override any user-provided `coverage: { enabled: true }` values set within a custom `vitest.config.ts`. Removing the default explicitly allows the option to be `undefined`, respecting the fallback behavior of the runner configuration. The description was also updated to explicitly document how the Vitest runner resolves the coverage configuration when the builder flag is omitted.
1 parent 2678f5f commit 7165324

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@
7575
},
7676
"coverage": {
7777
"type": "boolean",
78-
"description": "Enables coverage reporting for tests.",
79-
"default": false
78+
"description": "Enables coverage reporting for tests. If not specified, the coverage configuration from a runner configuration file will be used if present. Otherwise, coverage is disabled by default."
8079
},
8180
"coverageInclude": {
8281
"type": "array",

0 commit comments

Comments
 (0)