karideo/front/src/test.ts

21 lines
638 B
TypeScript
Raw Normal View History

2019-12-21 21:53:18 +01:00
// 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 {
2022-04-01 01:41:06 +02:00
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
2019-12-21 21:53:18 +01:00
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
2022-04-01 01:41:06 +02:00
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
2019-12-21 21:53:18 +01:00
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);