From 2425175695133ff3bbbf22cfb5ccdf9094413006 Mon Sep 17 00:00:00 2001 From: MeAkib Date: Tue, 20 Oct 2026 01:21:12 +0600 Subject: [PATCH] docs: correct `inlineStyle` and Karma `include` option descriptions The `ng new`/`application` `inlineStyle` description claimed only CSS can be included inline, but the schematic sets `inlineStyleLanguage` for other style languages, so inline Sass and Less work. The Karma `include` description said directories pick up only `.spec` files, but test discovery matches both `.spec` and `.test` files with `.ts` or `.tsx`. --- packages/angular/build/src/builders/karma/schema.json | 2 +- packages/schematics/angular/application/schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular/build/src/builders/karma/schema.json b/packages/angular/build/src/builders/karma/schema.json index 4a41bc4fdad2..1c743fc099ec 100644 --- a/packages/angular/build/src/builders/karma/schema.json +++ b/packages/angular/build/src/builders/karma/schema.json @@ -182,7 +182,7 @@ "type": "string" }, "default": ["**/*.spec.ts"], - "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists, it will be included instead." + "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all test files ending \".@(spec|test).@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching test file exists, it will be included instead." }, "exclude": { "type": "array", diff --git a/packages/schematics/angular/application/schema.json b/packages/schematics/angular/application/schema.json index d0c4f348feea..29528973cdb7 100644 --- a/packages/schematics/angular/application/schema.json +++ b/packages/schematics/angular/application/schema.json @@ -21,7 +21,7 @@ "x-prompt": "What name would you like to use for the application?" }, "inlineStyle": { - "description": "Include the styles for the root component directly within the `app.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.css`) is created.", + "description": "Include the styles for the root component directly within the `app.ts` file. By default, a separate stylesheet file (e.g., `app.css`) is created.", "type": "boolean", "alias": "s", "x-user-analytics": "ep.ng_inline_style"