import 'zone.js/dist/zone-testing' ; import { getTestBed } from '@angular/core/testing' ; import { BrowserDynamicTestingModule , platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing' ; import { ngMocks } from 'ng-mocks' ; ngMocks . autoSpy ( 'jasmine' ) ; declare const require ; jasmine . getEnv ( ) . allowRespy ( true ) ; getTestBed ( ) . initTestEnvironment ( BrowserDynamicTestingModule , platformBrowserDynamicTesting ( ) ) ; const context = require . context ( './' , true , /\.spec\.ts$/ ) ; for ( const key of context . keys ( ) ) { context ( key ) ; }