Skip to content

fix(@angular/build): disable Vitest test isolation by default#31826

Merged
clydin merged 1 commit intoangular:mainfrom
clydin:unit-test/disable-isolation-default
Nov 15, 2025
Merged

fix(@angular/build): disable Vitest test isolation by default#31826
clydin merged 1 commit intoangular:mainfrom
clydin:unit-test/disable-isolation-default

Conversation

@clydin
Copy link
Member

@clydin clydin commented Nov 15, 2025

Disables test isolation in Vitest by setting isolate: false in the default Vitest configuration. This change aligns the default test isolation behavior with the existing Karma/Jasmine experience, promoting standardization across testing frameworks within the Angular CLI.

This also provides significant performance improvements, especially in browser mode, by reducing the overhead associated with test isolation. All known issues related to disabling isolation have been addressed.

Disables test isolation in Vitest by setting `isolate: false` in the default
Vitest configuration. This change aligns the default test isolation behavior
with the existing Karma/Jasmine experience, promoting standardization across
testing frameworks within the Angular CLI.

This also provides significant performance improvements, especially in browser
mode, by reducing the overhead associated with test isolation. All known issues
related to disabling isolation have been addressed.
@clydin clydin added target: rc This PR is targeted for the next release-candidate action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 15, 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 Nov 15, 2025
@clydin clydin merged commit 4d42a3e into angular:main Nov 15, 2025
35 checks passed
@clydin
Copy link
Member Author

clydin commented Nov 15, 2025

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

@clydin clydin deleted the unit-test/disable-isolation-default branch November 15, 2025 02:11
@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 Dec 16, 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: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants