mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2c8fd2b57b
Patches are required for tsec and rules_webtesting. The fix for rules_webtesting was merged to that repo (https://github.com/bazelbuild/rules_webtesting/commit/581b1557e382f93419da6a03b91a45c2ac9a9ec8) but it's unclear when a release will be cut. PR Close #46313
21 lines
760 B
TypeScript
21 lines
760 B
TypeScript
/**
|
|
* @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;
|