feat(ivy): implement compileComponents
method for TestBedRender3
(#27778)
The implementation of the `compileComponents` method for `TestBedRender3` was missing. We now pass each component through `resolveComponentResources` when `TestBed.compileComponents` is called so that `templateUrl` and `styleUrls` can be resolved asynchronously and used once `TestBed.createComponent` is called. The component's metadata are overriden in `TestBed` instead of mutating the original metadata like this is the case outside of TestBed. The reason for that is that we need to ensure that we didn't mutate anything so that the following tests can run with the same original metadata, otherwise we it could trigger or hide some errors. FW-553 #resolve PR Close #27778
This commit is contained in:

committed by
Andrew Kushnir

parent
3a31a2795e
commit
29bff0f02e
@ -12,6 +12,7 @@ ng_module(
|
||||
module_name = "@angular/core/testing",
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/compiler",
|
||||
"//packages/core",
|
||||
"@ngdeps//@types/jasmine",
|
||||
"@ngdeps//zone.js",
|
||||
|
Reference in New Issue
Block a user