Skip to content

refactor(@angular/build): cleanup Vitest build options utilities#32876

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:refactor/vitest-build-options
Mar 30, 2026
Merged

refactor(@angular/build): cleanup Vitest build options utilities#32876
alan-agius4 merged 1 commit intoangular:mainfrom
clydin:refactor/vitest-build-options

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Mar 27, 2026

Extract zone testing strategy resolution to a separate function and reduce complexity of template literals.

@clydin clydin added the target: minor This PR is targeted for the next minor release label Mar 27, 2026
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 build options by extracting the logic for determining the ZoneJS testing strategy into a dedicated function and simplifying the virtual file content generation. Feedback suggests further improving the readability of the new getZoneTestingStrategy function by removing redundant else statements to flatten the logic.

@clydin clydin force-pushed the refactor/vitest-build-options branch from fca6e89 to bbb6afa Compare March 27, 2026 15:14
@clydin clydin requested a review from alan-agius4 March 27, 2026 15:14
@clydin clydin force-pushed the refactor/vitest-build-options branch from bbb6afa to 8fc1420 Compare March 27, 2026 16:40
Extract zone testing strategy resolution to a separate function and reduce complexity of template literals.
@clydin clydin force-pushed the refactor/vitest-build-options branch from 8fc1420 to 4e4422c Compare March 27, 2026 16:47
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 27, 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 30, 2026
@alan-agius4 alan-agius4 merged commit a68d57a into angular:main Mar 30, 2026
36 of 37 checks passed
@alan-agius4
Copy link
Copy Markdown
Collaborator

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

@clydin clydin deleted the refactor/vitest-build-options branch March 30, 2026 10:41
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: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants