https://github.com/angular/angular
Raw File
Tip revision: fb5e16e0184c5dbd4f6ab7fdb3d5c50afe9216a2 authored by Andrew Kushnir on 06 April 2022, 15:47:13 UTC
release: cut the v13.3.2 release (#45548)
Tip revision: fb5e16e
test.ts
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
  BrowserDynamicTestingModule,
  platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
  BrowserDynamicTestingModule,
  platformBrowserDynamicTesting(), {
    teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
back to top