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.configureTestingModule({declarations: [I18nComponent]});
|
||||||
|
|
||||||
TestBed.compileComponents();
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,6 @@ export function main() {
|
||||||
Logger,
|
Logger,
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
TestBed.compileComponents();
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should list all child nodes', () => {
|
it('should list all child nodes', () => {
|
||||||
|
|
|
@ -31,7 +31,6 @@ function declareTests({useJit}: {useJit: boolean}) {
|
||||||
TestBed.configureCompiler(
|
TestBed.configureCompiler(
|
||||||
{useJit: useJit, providers: [{provide: Console, useValue: console}]});
|
{useJit: useJit, providers: [{provide: Console, useValue: console}]});
|
||||||
TestBed.configureTestingModule({declarations: [MainComp, ChildComp, NestedChildComp]});
|
TestBed.configureTestingModule({declarations: [MainComp, ChildComp, NestedChildComp]});
|
||||||
TestBed.compileComponents();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should resolve ComponentFactories from the same component', () => {
|
it('should resolve ComponentFactories from the same component', () => {
|
||||||
|
|
|
@ -894,7 +894,6 @@ function declareTests({useJit}: {useJit: boolean}) {
|
||||||
TestBed.configureTestingModule({imports: [MyModule]});
|
TestBed.configureTestingModule({imports: [MyModule]});
|
||||||
TestBed.overrideComponent(
|
TestBed.overrideComponent(
|
||||||
MyComp, {add: {template: '<div><dynamic-vp #dynamic></dynamic-vp></div>'}});
|
MyComp, {add: {template: '<div><dynamic-vp #dynamic></dynamic-vp></div>'}});
|
||||||
return TestBed.compileComponents();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ export function main() {
|
||||||
NestedFormGroupComp
|
NestedFormGroupComp
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
TestBed.compileComponents();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('basic functionality', () => {
|
describe('basic functionality', () => {
|
||||||
|
|
|
@ -29,7 +29,6 @@ export function main() {
|
||||||
],
|
],
|
||||||
imports: [FormsModule]
|
imports: [FormsModule]
|
||||||
});
|
});
|
||||||
TestBed.compileComponents();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('basic functionality', () => {
|
describe('basic functionality', () => {
|
||||||
|
|
Loading…
Reference in New Issue