Commit 6608e17
committed
fix(@angular/build): enable test isolation by default in browser mode
This commit enables test isolation by default when running tests in a browser.
Disabling test isolation in browser mode has been found to cause non-deterministic test failures. To improve reliability, this change conditionally enables the `isolate` option when a browser provider is active.
Isolation remains disabled for DOM emulation environments to maintain alignment with the traditional Karma/Jasmine experience. Further investigation is needed to determine if isolation can be safely disabled for browser mode in the future.1 parent 6f2d4a9 commit 6608e17
File tree
1 file changed
+3
-2
lines changed- packages/angular/build/src/builders/unit-test/runners/vitest
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments