Commit 8b2ca7a
committed
fix(@angular/build): setup unit-test polyfills before TestBed init
To ensure that Zone.js is fully setup and patched prior to the use of TestBed,
the setup file order for the `vitest` runner of the `unit-test` builder
has been swapped. This is particularly relevant for `fakeAsync` which
has a module level statement that attempts to capture the `Zone` instance.
If Zone.js is not setup at that point, fakeAsync will fail to function in
tests.1 parent 7b8c9af commit 8b2ca7a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments