angular/packages/core/test
Andrew Scott 338818ce89 fix(core): Surface errors from ApplicationRef.tick to callsite (#60102)
This commit ensures that errors during `ApplicationRef.tick` are
surfaced to the callsite rather than being caught and reported to the
`ErrorHandler`.

The current catch and report approach was originally
added in e263e19a2a
with the goal of preventing automatic change detection crashes due to
the error happening in the subscription. However, this results in hiding
a public API that can hide errors. Callers cannot assume that the tick
was successful and perform follow-up work.

This change now surfaces errors and adds the error handling directly to
the callsites.

BREAKING CHANGE: `ApplicationRef.tick` will no longer catch and report
errors to the appplication `ErrorHandler`. Errors will instead be thrown out of
the method and will allow callers to determine how to handle these
errors, such as aborting follow-up work or reporting the error and
continuing.

PR Close #60102
2025-03-10 08:17:14 -07:00
..
acceptance refactor(core): remove microtask effect (#60234) 2025-03-06 12:48:55 -08:00
animation refactor(platform-browser): improve error message for UNEXPECTED_SYNTHETIC_PROPERTY (#58983) 2025-01-08 15:56:18 +00:00
authoring refactor(core): remove microtask effect (#60234) 2025-03-06 12:48:55 -08:00
bundling refactor(core): remove microtask effect (#60234) 2025-03-06 12:48:55 -08:00
change_detection refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
compiler refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
debug refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
di refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
dom refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
hydration refactor(core): change node navigation step to plain const (#59469) 2025-01-13 11:12:47 -05:00
i18n refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
linker test(core): update tests that were relying on implicit animations module (#59762) 2025-01-29 10:52:18 -08:00
metadata refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
playground/zone-signal-input refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
reflection refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
render3 fix(core): Surface errors from ApplicationRef.tick to callsite (#60102) 2025-03-10 08:17:14 -07:00
resource fix(core): fix race condition in resource() (#59851) 2025-02-05 15:01:02 -08:00
sanitization refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
signals test(core): additional linkedSignal tests (#59599) 2025-01-22 12:29:37 -08:00
strict_types refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
testability refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
util refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
zone test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
application_config_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
application_init_spec.ts feat(core): add syntactic sugar for initializers (#53152) 2024-10-22 09:38:18 -07:00
application_module_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
application_ref_integration_spec.ts refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
application_ref_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
BUILD.bazel test(core): Add scheduler in tests to tie into ApplicationRef.isStable (#53579) 2024-01-09 16:05:31 -08:00
change_detection_scheduler_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
component_fixture_spec.ts fix(core): Ensure ComponentFixture does not duplicate error reporting from FakeAsync (#60104) 2025-02-26 11:56:18 -05:00
defer_fixture_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
dev_mode_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
directive_lifecycle_integration_spec.ts refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
error_handler_spec.ts refactor(core): removing error related dead code. (#58272) 2024-10-22 09:42:47 -07:00
event_emitter_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
fake_async_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
forward_ref_integration_spec.ts refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
runtime_error_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
test_bed_effect_spec.ts refactor(core): remove microtask effect (#60234) 2025-03-06 12:48:55 -08:00
test_bed_spec.ts test(core): clean up explicit standalone flags from tests (#60062) 2025-02-24 11:27:44 -05:00
transfer_state_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
util_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00