Commit aec9504
fix(@angular/build): exclude only source test files with unit-test vitest support
When using the experimental unit-test builder with the vitest runner and code coverage,
the automatic coverage excludes are now adjust to not include the bundled test files.
This previously prevent accurate coverage analysis.
Vite does this as a convenience but is problematic for the bundling strategy employed by the
builder's test setup. To workaround this, the excludes are adjusted here to only automatically
exclude the TypeScript source test files.
(cherry picked from commit 87f4121)1 parent b13805a commit aec9504
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
238 | 252 | | |
239 | 253 | | |
240 | 254 | | |
| |||
0 commit comments