From db12eeff6561108e3b51eef14aed82eb9028f398 Mon Sep 17 00:00:00 2001 From: MeAkib Date: Fri, 30 Oct 2026 00:42:09 +0600 Subject: [PATCH] docs(@angular/build): correct the unit-test `browsers` option description The description states that tests run with jsdom when no browsers are set and gives 'ChromeHeadless' as the only example. The Vitest runner prefers happy-dom when it is installed, the Karma runner uses the browsers of its configuration, and the Vitest Playwright provider rejects 'chrome', so the example fails with the most common provider. Describe both runners and give an example for each. --- 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 8c7cfcf686b4..4a7d6521a157 100644 --- a/packages/angular/build/src/builders/unit-test/schema.json +++ b/packages/angular/build/src/builders/unit-test/schema.json @@ -25,7 +25,7 @@ "default": false }, "browsers": { - "description": "Specifies the browsers to use for test execution. When not specified, tests are run in a Node.js environment using jsdom. For both Vitest and Karma, browser names ending with 'Headless' (e.g., 'ChromeHeadless') will enable headless mode.", + "description": "Specifies the browsers to use for test execution. When not specified, the Vitest runner runs tests in a Node.js environment using `happy-dom` if it is installed, otherwise `jsdom`, and the Karma runner uses the browsers of its configuration. Browser names ending with `Headless` enable headless mode (e.g., `ChromiumHeadless` for Vitest with the Playwright provider, or `ChromeHeadless` for Karma).", "type": "array", "items": { "type": "string"