/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v22.0.7
test/angular-test.init.ts
29 строк
943 B
Kristiyan Kostadinov
build: remove reflect-metadata dependency (#31301)
06 июн 2025, 20:56
Не верифицирован
06 июн 2025, 20:56
3aece5d
Код
Авторство
О чём код?
/** * @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;