https://github.com/angular/angular
Raw File
Tip revision: 50623ea1e162f9424024b0393326c1442f24c7e9 authored by Pawel Kozlowski on 06 March 2024, 19:24:27 UTC
release: cut the v17.2.4 release
Tip revision: 50623ea
browser_tests.init.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 'zone.js/lib/browser/rollup-main';
import './zone_base_setup';
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