From b87865ded3965230475f358489939f6585706205 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Tue, 12 Nov 2024 16:38:17 +0000 Subject: [PATCH] fix(angular): when unit test runner is set to none library component should not generate spec file (#28906) ## Current Behavior When unitTestRunner is set to none, spec files are still generated ## Expected Behavior SkipTests when unit test runner set to none ## Related Issue(s) Fixes # (cherry picked from commit cd121bd5ee10735c2070f7fc45a72da776f273c9) --- packages/angular/src/generators/library/lib/normalize-options.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular/src/generators/library/lib/normalize-options.ts b/packages/angular/src/generators/library/lib/normalize-options.ts index 73096691429d2..710d11e87a80b 100644 --- a/packages/angular/src/generators/library/lib/normalize-options.ts +++ b/packages/angular/src/generators/library/lib/normalize-options.ts @@ -67,6 +67,7 @@ export async function normalizeOptions( fileName, importPath, ngCliSchematicLibRoot, + skipTests: options.unitTestRunner === 'none' ? true : options.skipTests, standaloneComponentName: `${ names(projectNames.projectSimpleName).className }Component`,