mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This removes the magic from the `inject` test helper that would inspect the current zone and would only work with our `async` test helper. Now, `inject` is always synchronous, and if you are using a module that requires async precompilation, you're required to call `doAsyncPrecompilation` in your tests. This is part of the breaking changes introduced with the swap to each test having an AppModule. Closes #9975 Closes #9593 BREAKING CHANGE: `TestInjector` is now renamed to `TestBed` Before: ```js import {TestInjector, getTestInjector} from '@angular/core/testing'; ``` After: ```js import {TestBed, getTestBed} from '@angular/core/testing'; ``` |
||
|---|---|---|
| .. | ||
| async.dart | ||
| async.ts | ||
| async_test_completer.ts | ||
| component_fixture.ts | ||
| fake_async.dart | ||
| fake_async.ts | ||
| lang_utils.dart | ||
| lang_utils.ts | ||
| logger.ts | ||
| mock_animation_player.ts | ||
| mock_application_ref.ts | ||
| ng_zone_mock.ts | ||
| test_bed.ts | ||
| test_component_builder.ts | ||
| testing.dart | ||
| testing.ts | ||
| testing_internal.dart | ||
| testing_internal.ts | ||