repository to manage all files related to the makeathon farm bot project (Software + Documentation).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.ts 749B

1234567891011121314151617181920212223242526
  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. <T>(id: string): T;
  11. keys(): string[];
  12. };
  13. };
  14. // First, initialize the Angular testing environment.
  15. getTestBed().initTestEnvironment(
  16. BrowserDynamicTestingModule,
  17. platformBrowserDynamicTesting(),
  18. );
  19. // Then we find all the tests.
  20. const context = require.context('./', true, /\.spec\.ts$/);
  21. // And load the modules.
  22. context.keys().forEach(context);