Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 11, 2025

This commit refactors the Vitest test runner by extracting the complex plugin creation logic out of the main VitestExecutor class and into a dedicated plugins.ts module.

This change reduces the complexity of the executor, making it easier to understand and maintain. The executor is now more focused on its core responsibility of managing the test execution lifecycle.

Additionally, this commit introduces a BrowserConfiguration interface for better type safety and marks several executor properties as readonly to enforce immutability.

@clydin clydin added the target: major This PR is targeted for the next major release label Sep 11, 2025
…t-test

This commit refactors the Vitest test runner by extracting the complex plugin creation logic out of the main `VitestExecutor` class and into a dedicated `plugins.ts` module.

This change reduces the complexity of the executor, making it easier to understand and maintain. The executor is now more focused on its core responsibility of managing the test execution lifecycle.

Additionally, this commit introduces a `BrowserConfiguration` interface for better type safety and marks several executor properties as readonly to enforce immutability.
@clydin clydin force-pushed the unit-test/vitest-plugin-extract branch from 30efbb6 to b5cdc66 Compare September 11, 2025 15:12
@clydin clydin marked this pull request as ready for review September 11, 2025 15:30
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 11, 2025
@clydin clydin 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 Sep 11, 2025
@clydin clydin merged commit 585eb89 into angular:main Sep 11, 2025
34 checks passed
@clydin clydin deleted the unit-test/vitest-plugin-extract branch September 11, 2025 17:02
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants