test.ts 648 B

1234567891011121314151617
  1. // This file is required by karma.conf.js and loads recursively all the .spec and framework files
  2. // tslint:disable
  3. import 'zone.js/testing';
  4. import { getTestBed } from '@angular/core/testing';
  5. import {
  6. BrowserDynamicTestingModule,
  7. platformBrowserDynamicTesting,
  8. } from '@angular/platform-browser-dynamic/testing';
  9. declare const require: any;
  10. // First, initialize the Angular testing environment.
  11. getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
  12. // Then we find all the tests.
  13. const context = require.context('./', true, /\.spec\.ts$/);
  14. // And load the modules.
  15. context.keys().map(context);