mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The internal error handler in TestBed rethrows errors to prevent them from being silently ignored in tests. Prior to this commit, tests which used `provideZoneChangeDetection` in the providers would override the internal error handler of TestBed and prevent these errors from being rethrown. BREAKING CHANGE: (test only) - Using `provideZoneChangeDetection` in the TestBed providers would previously prevent `TestBed` from rethrowing errors as it should. Errors in the test will now be rethrown, regardless of the usage of `provideZoneChangeDetection`. Tests should be adjusted to prevent or account for these errors. As in previous major versions, this behavior can be disabled with `rethrowApplicationErrors: false` in `configureTestingModule` as a last resort. PR Close #63404 |
||
|---|---|---|
| .. | ||
| application_error_handler.ts | ||
| async.ts | ||
| component_fixture.ts | ||
| defer.ts | ||
| fake_async.ts | ||
| logger.ts | ||
| metadata_override.ts | ||
| metadata_overrider.ts | ||
| resolvers.ts | ||
| styling.ts | ||
| test_bed.ts | ||
| test_bed_common.ts | ||
| test_bed_compiler.ts | ||
| test_hooks.ts | ||
| testing.ts | ||
| testing_internal.ts | ||
| testing_private_export.ts | ||