Skip to content

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

Open
clydin wants to merge 1 commit intoangular:mainfrom
clydin:refactor/vitest-build-options
Open

refactor(@angular/build): cleanup Vitest build options utilities#32876
clydin wants to merge 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer 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.

1 participant