|
|
|
|
|
import 'zone.js/testing'; |
|
import { getTestBed } from '@angular/core/testing'; |
|
import { |
|
BrowserDynamicTestingModule, |
|
platformBrowserDynamicTesting |
|
} from '@angular/platform-browser-dynamic/testing'; |
|
|
|
declare const require: { |
|
context(path: string, deep?: boolean, filter?: RegExp): { |
|
<T>(id: string): T; |
|
keys(): string[]; |
|
}; |
|
}; |
|
|
|
|
|
getTestBed().initTestEnvironment( |
|
BrowserDynamicTestingModule, |
|
platformBrowserDynamicTesting(), |
|
{ teardown: { destroyAfterEach: true }}, |
|
); |
|
|
|
|
|
const context = require.context('./', true, /\.spec\.ts$/); |
|
|
|
context.keys().map(context); |
|
|