https://github.com/angular/angular
Raw File
Tip revision: 7ca17a624988bdcf403f45827feffb908b4c3379 authored by George Kalpakas on 21 October 2020, 09:20:37 UTC
build(docs-infra): upgrade cli command docs sources to cba6d86ca (#39360)
Tip revision: 7ca17a6
test.ts
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/dist/zone-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()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
back to top