From b6c4cad475eab506866ebcc2c0952a9ac00e489a Mon Sep 17 00:00:00 2001 From: Pankaj Patil Date: Wed, 19 May 2021 13:24:57 +0530 Subject: [PATCH] fix(@schematics/angular): don't add `skipTest` option to module schematic options Closes ##20811 --- .../schematics/angular/application/index.ts | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index c367115a226d..ad922f789e0a 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -91,21 +91,14 @@ function addAppToWorkspaceFile(options: ApplicationOptions, appDir: string): Rul } if (options.skipTests || options.minimal) { - [ - 'class', - 'component', - 'directive', - 'guard', - 'interceptor', - 'module', - 'pipe', - 'service', - ].forEach((type) => { - if (!(`@schematics/angular:${type}` in schematics)) { - schematics[`@schematics/angular:${type}`] = {}; - } - (schematics[`@schematics/angular:${type}`] as JsonObject).skipTests = true; - }); + ['class', 'component', 'directive', 'guard', 'interceptor', 'pipe', 'service'].forEach( + (type) => { + if (!(`@schematics/angular:${type}` in schematics)) { + schematics[`@schematics/angular:${type}`] = {}; + } + (schematics[`@schematics/angular:${type}`] as JsonObject).skipTests = true; + }, + ); } if (options.strict) {