Skip to content

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

Open
clydin wants to merge 1 commit into
angular:mainfrom
clydin:fix/vitest-runner-config-override
Open

fix(@angular/build): preserve custom config options in runnerConfig for vitest#33592
clydin wants to merge 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
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: 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

1 participant