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
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 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