revert: fix(ivy): R3TestBed should clean up registered modules after each test (#32872) (#33663)

This commit reverts 475e36a.

PR Close #33663
This commit is contained in:
Andrew Scott
2019-11-08 10:18:46 -08:00
committed by Kara Erickson
parent e1ee90c218
commit f1b0547f0a
4 changed files with 4 additions and 29 deletions

View File

@ -35,7 +35,6 @@ import {MetadataOverride} from './metadata_override';
import {TestBed} from './test_bed';
import {ComponentFixtureAutoDetect, ComponentFixtureNoNgZone, TestBedStatic, TestComponentRenderer, TestModuleMetadata} from './test_bed_common';
import {R3TestBedCompiler} from './r3_test_bed_compiler';
import {clearModuleRegistry} from '../../src/linker/ng_module_factory_registration';
let _nextRootElementId = 0;
@ -229,7 +228,6 @@ export class TestBedRender3 implements TestBed {
}
resetTestingModule(): void {
clearModuleRegistry();
this.checkGlobalCompilationFinished();
resetCompiledComponents();
if (this._compiler !== null) {