https://github.com/angular/angular
Raw File
Tip revision: dacdd27866fa82ef3bb0243703ca7da3153f85dd authored by Andrew Kushnir on 05 October 2022, 15:35:03 UTC
release: cut the v14.2.5 release
Tip revision: dacdd27
init_browser_tests.ts
/**
 * @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 '@angular/compiler'; // For JIT mode. Must be in front of any other @angular/* imports.

import {TestBed} from '@angular/core/testing';
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';

TestBed.initTestEnvironment(
    [BrowserDynamicTestingModule, NoopAnimationsModule], platformBrowserDynamicTesting());

(window as any).isNode = false;
(window as any).isBrowser = true;
(window as any).global = window;
back to top