Commit 49b65ab
committed
fix(@angular/build): disable Vitest test isolation by default
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.
(cherry picked from commit 4d42a3e)1 parent 6b2a88a commit 49b65ab
File tree
1 file changed
+2
-1
lines changed- packages/angular/build/src/builders/unit-test/runners/vitest
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
0 commit comments