Repository navigation
Commit 2ae38c8
committed
fix(@schematics/angular): keep base test build options in per-configuration Karma migration
The Karma to Vitest migration moves build-only test options such as `styles` into a `testing` build
configuration and points the test target at it. For each test configuration it created a separate
`testing-<name>` build configuration containing only that configuration's own options. Because a
test configuration's `buildTarget` replaces the base one, running `ng test --configuration <name>`
lost the options moved from the base test options.
Merge the base options into each per-configuration build configuration, with the configuration's own
values taking precedence.1 parent 0fd4404 commit 2ae38c8
2 files changed
Lines changed: 29 additions & 1 deletion
File tree
- packages/schematics/angular/migrations/migrate-karma-to-vitest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
309 | 315 | | |
310 | 316 | | |
311 | | - | |
| 317 | + | |
312 | 318 | | |
313 | 319 | | |
314 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
131 | 153 | | |
132 | 154 | | |
133 | 155 | | |
| |||
0 commit comments