mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(core): remove deprecated aotSummaries fields in TestBed config (#45487)
BREAKING CHANGE: Since Ivy, TestBed doesn't use AOT summaries. The `aotSummaries` fields in TestBed APIs were present, but unused. The fields were deprecated in previous major version and in v14 those fields are removed. The `aotSummaries` fields were completely unused, so you can just drop them from the TestBed APIs usage. PR Close #45487
This commit is contained in:
committed by
Jessica Janiuk
parent
89ed8d8976
commit
9add714b13
@@ -74,8 +74,6 @@ v14 - v17
|
||||
| `@angular/core` | [Factory-based signature of `ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent) | <!-- v13 --> v15 |
|
||||
| `@angular/core/testing` | [`TestBed.get`](#testing) | <!-- v9 --> v12 |
|
||||
| `@angular/core/testing` | [`async`](#testing) | <!-- v9 --> v12 |
|
||||
| `@angular/core/testing` | [`aotSummaries` argument in `TestBed.initTestEnvironment`](#testing) | <!-- v13 --> v14 |
|
||||
| `@angular/core/testing` | [`aotSummaries` field of the `TestModuleMetadata` type](#testing) | <!-- v13 --> v14 |
|
||||
| `@angular/forms` | [`FormBuilder.group` legacy options parameter](api/forms/FormBuilder#group) | <!-- v11 --> v14 |
|
||||
| `@angular/platform-server` | [`renderModuleFactory`](#platform-server) | <!-- v13 --> v15 |
|
||||
| `@angular/router` | [`relativeLinkResolution`](#relativeLinkResolution) | <!-- v14 --> v16 |
|
||||
@@ -148,8 +146,6 @@ In the [API reference section](api) of this site, deprecated APIs are indicated
|
||||
|:--- |:--- |:--- |:--- |
|
||||
| [`TestBed.get`](api/core/testing/TestBed#get) | [`TestBed.inject`](api/core/testing/TestBed#inject) | v9 | Same behavior, but type safe. |
|
||||
| [`async`](api/core/testing/async) | [`waitForAsync`](api/core/testing/waitForAsync) | v10 | Same behavior, but rename to avoid confusion. |
|
||||
| [`aotSummaries` argument in `TestBed.initTestEnvironment`](api/core/testing/TestBed#inittestenvironment) | No replacement needed | v13 | Summary files are unused in Ivy. |
|
||||
| [`aotSummaries` field of the `TestModuleMetadata` type](api/core/testing/TestModuleMetadata) | No replacement needed | v13 | Summary files are unused in Ivy. |
|
||||
|
||||
<a id="platform-browser-dynamic"></a>
|
||||
|
||||
|
||||
@@ -79,11 +79,11 @@ describe('Api pages', () => {
|
||||
|
||||
it('should show all overloads of interface methods', async () => {
|
||||
await page.navigateTo('api/core/testing/TestBedStatic');
|
||||
expect(await (await page.getInstanceMethodOverloads('initTestEnvironment')).length).toEqual(2);
|
||||
expect(await (await page.getInstanceMethodOverloads('inject')).length).toEqual(2);
|
||||
});
|
||||
|
||||
it('should show all overloads of pseudo-class methods', async () => {
|
||||
await page.navigateTo('api/core/testing/TestBed');
|
||||
expect(await (await page.getInstanceMethodOverloads('initTestEnvironment')).length).toEqual(2);
|
||||
expect(await (await page.getInstanceMethodOverloads('inject')).length).toEqual(2);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user