diff --git a/packages/core/testing/src/ng_zone_mock.ts b/packages/core/testing/src/ng_zone_mock.ts deleted file mode 100644 index d0f4aa3da0b..00000000000 --- a/packages/core/testing/src/ng_zone_mock.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ - -import {EventEmitter, Injectable, NgZone} from '@angular/core'; - - -/** - * A mock implementation of {@link NgZone}. - */ -@Injectable() -export class MockNgZone extends NgZone { - override onStable: EventEmitter = new EventEmitter(false); - - constructor() { - super({enableLongStackTrace: false, shouldCoalesceEventChangeDetection: false}); - } - - override run(fn: Function): any { - return fn(); - } - - override runOutsideAngular(fn: Function): any { - return fn(); - } - - simulateZoneExit(): void { - this.onStable.emit(null); - } -} diff --git a/packages/core/testing/src/testing_internal.ts b/packages/core/testing/src/testing_internal.ts index 1307ecf157c..510f7d3e9bc 100644 --- a/packages/core/testing/src/testing_internal.ts +++ b/packages/core/testing/src/testing_internal.ts @@ -9,4 +9,3 @@ export {inject} from './test_bed'; export * from './logger'; -export * from './ng_zone_mock';