Skip to content

refactor(@angular/build): extract headless configuration logic into helper function#32898

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:vitest/chrome-bin-fix
Mar 31, 2026
Merged

refactor(@angular/build): extract headless configuration logic into helper function#32898
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:vitest/chrome-bin-fix

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Mar 30, 2026

This extracts the verbose headless property mutation logic from the monolithic setupBrowserConfiguration function into a standalone applyHeadlessConfiguration helper function to improve maintainability and readability.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Vitest browser provider by extracting the headless configuration logic into a dedicated, exported function applyHeadlessConfiguration and adding comprehensive unit tests for it. The feedback identifies a redundant inline type import that should be replaced with the existing top-level import for better consistency.

@clydin clydin force-pushed the vitest/chrome-bin-fix branch from 3ef98a4 to be4ca40 Compare March 30, 2026 19:52
…elper function

This extracts the verbose headless property mutation logic from the monolithic setupBrowserConfiguration function into a standalone applyHeadlessConfiguration helper function to improve maintainability and readability.
@clydin clydin force-pushed the vitest/chrome-bin-fix branch from be4ca40 to 3bac7e2 Compare March 30, 2026 19:58
@clydin clydin added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Mar 30, 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 Mar 31, 2026
@alan-agius4 alan-agius4 merged commit 3663f80 into angular:main Mar 31, 2026
37 of 38 checks passed
@alan-agius4
Copy link
Copy Markdown
Collaborator

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

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: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants