Skip to content

Commit 2d47dce

Browse files
committed
fix(@angular/build): revert setup unit-test polyfills before TestBed init
The previous change caused Zone.js related test failures when using vitest as a test runner. This reverts commit 8b2ca7a.
1 parent 3bfdf1d commit 2d47dce

File tree

1 file changed

+1
-1
lines changed
  • packages/angular/build/src/builders/unit-test

1 file changed

+1
-1
lines changed

packages/angular/build/src/builders/unit-test/builder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export async function* execute(
194194
// Add setup file entries for TestBed initialization and project polyfills
195195
const setupFiles = ['init-testbed.js'];
196196
if (buildTargetOptions?.polyfills?.length) {
197-
setupFiles.unshift('polyfills.js');
197+
setupFiles.push('polyfills.js');
198198
}
199199

200200
try {

0 commit comments

Comments
 (0)