From 8eadd88931ecdc9b1c0900b63f0e75fc01bb5fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20M=C3=BCller?= Date: Mon, 27 Apr 2026 17:15:48 +0200 Subject: [PATCH 1/2] docs(@schematics/angular): reference vitest-base config in karma-to-vitest migration warning --- .../migrations/migrate-karma-to-vitest/karma-processor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/schematics/angular/migrations/migrate-karma-to-vitest/karma-processor.ts b/packages/schematics/angular/migrations/migrate-karma-to-vitest/karma-processor.ts index 9fc773470c52..e6e96d886781 100644 --- a/packages/schematics/angular/migrations/migrate-karma-to-vitest/karma-processor.ts +++ b/packages/schematics/angular/migrations/migrate-karma-to-vitest/karma-processor.ts @@ -158,7 +158,8 @@ export async function processKarmaConfig( context.logger.warn( `Project "${projectName}" uses a custom Karma configuration file "${karmaConfig}". ` + `Tests have been migrated to use Vitest, but you may need to manually migrate custom settings ` + - `from this Karma config to a Vitest config (e.g. vitest.config.ts).`, + `from this Karma config to a Vitest config (e.g. "vitest-base.config.ts") ` + + `and set the "runnerConfig" option to true.`, ); manualMigrationFiles.push(karmaConfig); } From d619279b1c114f1db4940f86cedc32f88e087ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20M=C3=BCller?= Date: Mon, 27 Apr 2026 17:15:57 +0200 Subject: [PATCH 2/2] docs(@angular/build): reference vitest-base config in unit-test schema runnerConfig description --- packages/angular/build/src/builders/unit-test/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular/build/src/builders/unit-test/schema.json b/packages/angular/build/src/builders/unit-test/schema.json index 403b61a9009b..b0ccd9088cb2 100644 --- a/packages/angular/build/src/builders/unit-test/schema.json +++ b/packages/angular/build/src/builders/unit-test/schema.json @@ -21,7 +21,7 @@ }, "runnerConfig": { "type": ["string", "boolean"], - "description": "Specifies the configuration file for the selected test runner. If a string is provided, it will be used as the path to the configuration file. If `true`, the builder will search for a default configuration file (e.g., `vitest.config.ts` or `karma.conf.js`). If `false`, no external configuration file will be used.\\nFor Vitest, this enables advanced options and the use of custom plugins. Please note that while the file is loaded, the Angular team does not provide direct support for its specific contents or any third-party plugins used within it.", + "description": "Specifies the configuration file for the selected test runner. If a string is provided, it will be used as the path to the configuration file. If `true`, the builder will search for a default configuration file (e.g., `vitest-base.config.ts` or `karma.conf.js`). If `false`, no external configuration file will be used.\\nFor Vitest, this enables advanced options and the use of custom plugins. Please note that while the file is loaded, the Angular team does not provide direct support for its specific contents or any third-party plugins used within it.", "default": false }, "browsers": {