Skip to content

Commit db12eef

Browse files
committed
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.
1 parent 321b475 commit db12eef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/angular/build/src/builders/unit-test

‎packages/angular/build/src/builders/unit-test/schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"default": false
2626
},
2727
"browsers": {
28-
"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.",
28+
"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).",
2929
"type": "array",
3030
"items": {
3131
"type": "string"

0 commit comments

Comments
 (0)