test: improve perfs by removing unneeded TestBed.compileComponents() calls (#11083)

This commit is contained in:
Marc Laval 2016-08-25 23:56:14 +02:00 committed by Victor Berchet
parent 515ff61fcb
commit cbe0976426
6 changed files with 0 additions and 7 deletions

View File

@ -30,8 +30,6 @@ export function main() {
});
TestBed.configureTestingModule({declarations: [I18nComponent]});
TestBed.compileComponents();
}));

View File

@ -189,7 +189,6 @@ export function main() {
Logger,
]
});
TestBed.compileComponents();
}));
it('should list all child nodes', () => {

View File

@ -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', () => {

View File

@ -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();
});

View File

@ -31,7 +31,6 @@ export function main() {
NestedFormGroupComp
]
});
TestBed.compileComponents();
});
describe('basic functionality', () => {

View File

@ -29,7 +29,6 @@ export function main() {
],
imports: [FormsModule]
});
TestBed.compileComponents();
});
describe('basic functionality', () => {