Angular Web App
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

hace 4 años
123456789101112131415161718192021222324252627
  1. // This file is required by karma.conf.js and loads recursively all the .spec and framework files
  2. import 'zone.js/testing';
  3. import { getTestBed } from '@angular/core/testing';
  4. import {
  5. BrowserDynamicTestingModule,
  6. platformBrowserDynamicTesting
  7. } from '@angular/platform-browser-dynamic/testing';
  8. declare const require: {
  9. context(path: string, deep?: boolean, filter?: RegExp): {
  10. keys(): string[];
  11. <T>(id: string): T;
  12. };
  13. };
  14. // First, initialize the Angular testing environment.
  15. getTestBed().initTestEnvironment(
  16. BrowserDynamicTestingModule,
  17. platformBrowserDynamicTesting(),
  18. { teardown: { destroyAfterEach: true }},
  19. );
  20. // Then we find all the tests.
  21. const context = require.context('./', true, /\.spec\.ts$/);
  22. // And load the modules.
  23. context.keys().map(context);