🐞 Bug report
Command (mark with an x)
Is this a regression?
No
Description
When generating a new Angular project without the tests (--skip-tests --minimal), Angular CLI generates a .vscode folder with incorrect JSON configurations for the tests that are not present on the project.
🔬 Minimal Reproduction
ng new demo --skip-tests --minimal
❌ Current behavior
Here are the generated files:
.vscode/launch.json
.vscode/task.json
✔ Expected behavior
I should have these generated files instead:
.vscode/launch.json
.vscode/task.json
🌍 Your Environment
Angular CLI: 14.0.1
Node: 16.15.1
Package Manager: npm 8.12.1
🐞 Bug report
Command (mark with an
x)Is this a regression?
No
Description
When generating a new Angular project without the tests (
--skip-tests --minimal), Angular CLI generates a.vscodefolder with incorrect JSON configurations for the tests that are not present on the project.🔬 Minimal Reproduction
ng new demo --skip-tests --minimal❌ Current behavior
Here are the generated files:
.vscode/launch.json{ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "ng serve", "type": "pwa-chrome", "request": "launch", "preLaunchTask": "npm: start", "url": "http://localhost:4200/" }, { "name": "ng test", "type": "chrome", "request": "launch", "preLaunchTask": "npm: test", "url": "http://localhost:9876/debug.html" } ] }.vscode/task.json{ // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 "version": "2.0.0", "tasks": [ { "type": "npm", "script": "start", "isBackground": true, "problemMatcher": { "owner": "typescript", "pattern": "$tsc", "background": { "activeOnStart": true, "beginsPattern": { "regexp": "(.*?)" }, "endsPattern": { "regexp": "bundle generation complete" } } } }, { "type": "npm", "script": "test", "isBackground": true, "problemMatcher": { "owner": "typescript", "pattern": "$tsc", "background": { "activeOnStart": true, "beginsPattern": { "regexp": "(.*?)" }, "endsPattern": { "regexp": "bundle generation complete" } } } } ] }✔ Expected behavior
I should have these generated files instead:
.vscode/launch.json{ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "ng serve", "type": "pwa-chrome", "request": "launch", "preLaunchTask": "npm: start", "url": "http://localhost:4200/" } ] }.vscode/task.json{ // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 "version": "2.0.0", "tasks": [ { "type": "npm", "script": "start", "isBackground": true, "problemMatcher": { "owner": "typescript", "pattern": "$tsc", "background": { "activeOnStart": true, "beginsPattern": { "regexp": "(.*?)" }, "endsPattern": { "regexp": "bundle generation complete" } } } } ] }🌍 Your Environment