-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Expand file tree
/
Copy pathangular-test.init.ts
More file actions
29 lines (24 loc) · 943 Bytes
/
angular-test.init.ts
File metadata and controls
29 lines (24 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* @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.dev/license
*/
import 'zone.js';
import 'zone.js/testing';
import {NgModule, provideCheckNoChangesConfig, provideZonelessChangeDetection} from '@angular/core';
import {TestBed} from '@angular/core/testing';
import {BrowserTestingModule, platformBrowserTesting} from '@angular/platform-browser/testing';
@NgModule({
providers: [provideZonelessChangeDetection(), provideCheckNoChangesConfig({exhaustive: true})],
})
export class TestModule {}
/*
* Common setup / initialization for all unit tests in Angular Material and CDK.
*/
TestBed.initTestEnvironment([BrowserTestingModule, TestModule], platformBrowserTesting());
(window as any).module = {};
(window as any).isNode = false;
(window as any).isBrowser = true;
(window as any).global = window;