Commit 9d5890f
committed
fix(@angular/build): disable root config extension for inline test project
In Vitest 5, inline projects declared under `test.projects` extend the
declaring root configuration by default (`extends: true`). Because the
Angular CLI test runner already explicitly merges user-provided options
from the configuration file into `projectConfig`, automatic root inheritance
caused array options—such as `browser.instances` and plugins—to be merged
and concatenated twice.
Setting `extends: false` on the inline project configuration keeps it
isolated from the declaring root config and prevents duplicate browser
instance registrations and repeated test runs.1 parent 0a64044 commit 9d5890f
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| 269 | + | |
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
| |||
0 commit comments