Skip to content

feat(@angular/build): add headless option to unit-test builder#32427

Merged
clydin merged 1 commit intoangular:mainfrom
clydin:unit-test/headless-option
Feb 5, 2026
Merged

feat(@angular/build): add headless option to unit-test builder#32427
clydin merged 1 commit intoangular:mainfrom
clydin:unit-test/headless-option

Conversation

@clydin
Copy link
Member

@clydin clydin commented Feb 4, 2026

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.

Closes #31655

@clydin clydin added the target: minor This PR is targeted for the next minor release label Feb 4, 2026
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/build labels Feb 4, 2026
@clydin clydin force-pushed the unit-test/headless-option branch from 45eada1 to 6430bae Compare February 4, 2026 17:09
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.
@clydin clydin force-pushed the unit-test/headless-option branch from 6430bae to c52461b Compare February 4, 2026 17:18
@clydin clydin marked this pull request as ready for review February 4, 2026 17:25
@clydin clydin requested a review from alan-agius4 February 4, 2026 17:32
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 4, 2026
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 5, 2026
@clydin clydin merged commit ece30f2 into angular:main Feb 5, 2026
37 checks passed
@clydin
Copy link
Member Author

clydin commented Feb 5, 2026

This PR was merged into the repository. The changes were merged into the following branches:

@clydin clydin deleted the unit-test/headless-option branch February 5, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unit-test builder could align with Vitest's headless option

2 participants