Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Sep 30, 2025

The Vitest browser provider configuration is updated to be more intelligent in automated environments.

Previously, headless mode was only triggered if the browser name included headless. This change automatically enables headless mode when the CI environment variable is detected, which is standard practice for continuous integration pipelines.

Additionally, the ui property is now explicitly set to the inverse of the headless state, preventing the Vitest UI from attempting to render in a non-interactive environment. A satisfies clause has also been added to improve type safety against the Vitest configuration options.

…r vitest

The Vitest browser provider configuration is updated to be more intelligent in automated environments.

Previously, headless mode was only triggered if the browser name included headless. This change automatically enables headless mode when the `CI` environment variable is detected, which is standard practice for continuous integration pipelines.

Additionally, the `ui` property is now explicitly set to the inverse of the `headless` state, preventing the Vitest UI from attempting to render in a non-interactive environment. A `satisfies` clause has also been added to improve type safety against the Vitest configuration options.
@clydin clydin added the target: major This PR is targeted for the next major release label Sep 30, 2025
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 30, 2025
@clydin clydin 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 Sep 30, 2025
@clydin clydin merged commit 6da2c5e into angular:main Sep 30, 2025
35 checks passed
@clydin clydin deleted the vitest/no-ui-headless branch September 30, 2025 20:21
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants