Skip to content

fix(@angular/build): preserve custom config options in runnerConfig for vitest#33592

Merged
clydin merged 1 commit into
angular:mainfrom
clydin:fix/vitest-runner-config-override
Jul 21, 2026
Merged

fix(@angular/build): preserve custom config options in runnerConfig for vitest#33592
clydin merged 1 commit into
angular:mainfrom
clydin:fix/vitest-runner-config-override

Conversation

@clydin

@clydin clydin commented Jul 16, 2026

Copy link
Copy Markdown
Member

Ensure optional Vitest configuration keys (such as outputFile, cache, and testNamePattern) are only defined on the inline options passed to startVitest if they are not undefined. This prevents Vitest's config merging from overriding user-defined custom configuration values in the runner configuration file with undefined.

…or vitest

Ensure optional Vitest configuration keys (such as `outputFile`, `cache`, and `testNamePattern`) are only defined on the inline options passed to `startVitest` if they are not `undefined`. This prevents Vitest's config merging from overriding user-defined custom configuration values in the runner configuration file with `undefined`.
@clydin clydin linked an issue Jul 16, 2026 that may be closed by this pull request
1 task
@clydin clydin added the target: patch This PR is targeted for the next patch release label Jul 16, 2026

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

Copy link
Copy Markdown

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 updates the Vitest executor to conditionally include configuration options such as outputFile, cache, and testNamePattern. This ensures that user-defined configurations in vitest.config.ts are not inadvertently overridden by default values. Additionally, new test cases have been added to verify the preservation of custom reporter output files and coverage options. I have no further feedback to provide.

@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 16, 2026
@clydin
clydin requested a review from alan-agius4 July 20, 2026 13:12
@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 Jul 21, 2026
@clydin
clydin merged commit 80edac5 into angular:main Jul 21, 2026
43 checks passed
@clydin

clydin commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

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

@clydin
clydin deleted the fix/vitest-runner-config-override branch July 21, 2026 14:13
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.

Angular runnerConfig not reading my vitest coverage report generation config

2 participants