angular/packages/core/src/platform
Andrew Scott 3b0dca75d6 fix(core): Allow zoneless scheduler to run inside fakeAsync (#56932)
The zoneless scheduler callback was executed in the root zone rather
than simply in `runOutsideAngular` to allow us to land the hybrid mode
change detection (scheduler always enabled, even for zones) without
breaking a ton of existing `fakeAsync` tests that could/would fail with
the "timer(s) still in queue" error. However, this caused another
problem: when a test executes inside `fakeAsync`, it cannot flush the
scheduled time. A similar problem exists with event and run coalescing (#56767).
This change would allow `fakeAsync` to flush the zoneless-scheduled
change detections and minimize breaking existing tests
by flushing pending timers at the end of the test, which actually now
matches what's done internally.

PR Close #56932
2024-08-15 12:32:24 -04:00
..
bootstrap.ts fix(core): warnings for oversized images and lazy-lcp present with bootstrapModule (#57060) 2024-07-30 18:03:35 +00:00
platform.ts refactor(core): de-duplicate bootstrap code between bootstrapApplication and bootstrapModule (#57060) 2024-07-30 18:03:35 +00:00
platform_core_providers.ts refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
platform_destroy_listeners.ts refactor(core): de-duplicate bootstrap code between bootstrapApplication and bootstrapModule (#57060) 2024-07-30 18:03:35 +00:00
platform_ref.ts fix(core): Allow zoneless scheduler to run inside fakeAsync (#56932) 2024-08-15 12:32:24 -04:00