test.ts 695 B

12345678910111213141516171819
  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. teardown: { destroyAfterEach: false }
  13. });
  14. // Then we find all the tests.
  15. const context = require.context('./', true, /\.spec\.ts$/);
  16. // And load the modules.
  17. context.keys().map(context);