test: improve perfs by removing unneeded TestBed.compileComponents() calls (#11083)
This commit is contained in:
parent
515ff61fcb
commit
cbe0976426
|
@ -30,8 +30,6 @@ export function main() {
|
|||
});
|
||||
|
||||
TestBed.configureTestingModule({declarations: [I18nComponent]});
|
||||
|
||||
TestBed.compileComponents();
|
||||
}));
|
||||
|
||||
|
||||
|
|
|
@ -189,7 +189,6 @@ export function main() {
|
|||
Logger,
|
||||
]
|
||||
});
|
||||
TestBed.compileComponents();
|
||||
}));
|
||||
|
||||
it('should list all child nodes', () => {
|
||||
|
|
|
@ -31,7 +31,6 @@ function declareTests({useJit}: {useJit: boolean}) {
|
|||
TestBed.configureCompiler(
|
||||
{useJit: useJit, providers: [{provide: Console, useValue: console}]});
|
||||
TestBed.configureTestingModule({declarations: [MainComp, ChildComp, NestedChildComp]});
|
||||
TestBed.compileComponents();
|
||||
});
|
||||
|
||||
it('should resolve ComponentFactories from the same component', () => {
|
||||
|
|
|
@ -894,7 +894,6 @@ function declareTests({useJit}: {useJit: boolean}) {
|
|||
TestBed.configureTestingModule({imports: [MyModule]});
|
||||
TestBed.overrideComponent(
|
||||
MyComp, {add: {template: '<div><dynamic-vp #dynamic></dynamic-vp></div>'}});
|
||||
return TestBed.compileComponents();
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ export function main() {
|
|||
NestedFormGroupComp
|
||||
]
|
||||
});
|
||||
TestBed.compileComponents();
|
||||
});
|
||||
|
||||
describe('basic functionality', () => {
|
||||
|
|
|
@ -29,7 +29,6 @@ export function main() {
|
|||
],
|
||||
imports: [FormsModule]
|
||||
});
|
||||
TestBed.compileComponents();
|
||||
});
|
||||
|
||||
describe('basic functionality', () => {
|
||||
|
|
Loading…
Reference in New Issue