You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ece30f2
Browse filesBrowse the repository at this point in the historyBrowse files
feat(@angular/build): add headless option to unit-test builder
This adds a new 'headless' option to the unit-test builder. When set to true, it forces all configured browsers to run in headless mode.
This option allows users to force headless execution in non-CI environments (where it is already the default) or to explicitly control the mode regardless of the browser name.
Informational messages are now logged when the option is redundant (e.g., all browsers are already headless), ignored (e.g., using the preview provider), or irrelevant (e.g., no browsers configured).
The 'karma' runner does not support this option and will log a warning if it is used.
Copy file name to clipboardExpand all lines: packages/angular/build/src/builders/unit-test/schema.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,10 @@
60
60
"type": "boolean",
61
61
"description": "Enables watch mode, which re-runs tests when source files change. Defaults to `true` in TTY environments and `false` otherwise."
62
62
},
63
+
"headless": {
64
+
"type": "boolean",
65
+
"description": "Forces all configured browsers to run in headless mode. When using the Vitest runner, this option is ignored if no browsers are configured. The Karma runner does not support this option."
66
+
},
63
67
"debug": {
64
68
"type": "boolean",
65
69
"description": "Enables debugging mode for tests, allowing the use of the Node Inspector.",
0 commit comments