Repository navigation
Commit 40c6807
committed
fix(@schematics/angular): do not generate tsconfig.spec.json when tests are skipped
with `skipTests` application schematic already leaves out test target, spec reference in root `tsconfig.json`, test runner dependencies and spec files, yet it still wrote `tsconfig.spec.json` that no target or tsconfig refrences
file is now filtered out for `skipTests` same way as for `minimal`, so `ng new --skip-tests` and `ng g app --skip-tests` no longer leave it behind
`"test": "ng test"` script in workspace `package.json` is still added, workspace schematic has no `skipTests` option
Refs #91601 parent 193abc0 commit 40c6807
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
160 | 171 | | |
161 | 172 | | |
162 | 173 | | |
| |||
0 commit comments