| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
|
||
| compileComponents(): Promise<any>; | ||
|
|
||
| prepareAsyncComponents(): Promise<any>; |
There was a problem hiding this comment.
This should have documentation about when you need to call this.
Sorry, something went wrong.
|
I've revised that change to only alter the behavior of compileComponents. |
Sorry, something went wrong.
In the context of AOT tests, component with defer blocks no longer throw on instanciation if the component is not overridden (with `overrideComponent`) Prior to this change, all components with a `@defer` block would throw if `compileComponents` was not invoked. In none-JIT apps, this change makes `compileComponents()` uneccesary.
There was a problem hiding this comment.
AGENT: I have reviewed the changes in test_bed_compiler and they appear correct and accurate in determining when compileComponents must be called. They allow AOT components with overrides to skip full compilation if they don't have unresolved async metadata.
Sorry, something went wrong.
There was a problem hiding this comment.
AGENT: I have reviewed the changes in test_bed_compiler and they appear correct and accurate. I suggest improving the error messages to provide more context: 1. In test_bed_compiler.ts: 'Component has unresolved async metadata (from @defer blocks) and has been overridden. Please call await TestBed.compileComponents() to resolve the metadata before running this test.' 2. In test_bed.ts: 'Component has unresolved async metadata. Please call await TestBed.compileComponents() before running this test.'
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with note that the error message could be slightly improved to indicate where the "missing" metadata is coming from. I do believe we know more and could provide some more context but not blocking on that.
Sorry, something went wrong.
|
I'll provide a follow-up to add info to the error message. |
Sorry, something went wrong.
|
Caretaker note: Presubmit failures are flakes. This is good to go. |
Sorry, something went wrong.
|
This PR was merged into the repository. The changes were merged into the following branches:
|
Sorry, something went wrong.
angular/angular/pull/61230 updated `TestBed`'s behavior of components with async metadata. `TestBed` will now only throw when `overrideComponent()` is used on a component with a `@defer` block
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In the context of AOT tests, component with defer blocks no longer throw on instanciation if the component is not overridden (with overrideComponent)
Prior to this change, all components with a @defer block would throw if compileComponents was not invoked.
In none-JIT apps, this change makes compileComponents() uneccesary.