Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 11, 2025

This commit refactors the unit test builder to centralize test file discovery, preventing redundant operations in the test runner's execution phase.

The TestRunner API has been updated to pass the test entry point mappings from the initial build options phase directly to the executor. This removes the need for the Vitest executor to re-discover tests, simplifying its logic and adhering to the DRY principle.

The JSDoc comments for the runner API have also been updated to reflect these changes.

This commit refactors the unit test builder to centralize test file discovery, preventing redundant operations in the test runner's execution phase.

The `TestRunner` API has been updated to pass the test entry point mappings from the initial build options phase directly to the executor. This removes the need for the Vitest executor to re-discover tests, simplifying its logic and adhering to the DRY principle.

The JSDoc comments for the runner API have also been updated to reflect these changes.
@clydin clydin added the target: major This PR is targeted for the next major release label Sep 11, 2025
@clydin clydin marked this pull request as ready for review September 11, 2025 17:49
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 11, 2025
@clydin clydin requested a review from alan-agius4 September 12, 2025 12:40
@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 12, 2025
@clydin clydin merged commit b613249 into angular:main Sep 12, 2025
36 checks passed
@clydin clydin deleted the unit-test/dup-test-discovery branch September 12, 2025 14:43
@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 13, 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