2017-11-03 18:08:28 +01:00
|
|
|
import './testing/global-jasmine';
|
|
|
|
import 'jasmine-core/lib/jasmine-core/jasmine-html.js';
|
|
|
|
import 'jasmine-core/lib/jasmine-core/boot.js';
|
|
|
|
|
|
|
|
declare var jasmine;
|
|
|
|
|
|
|
|
import './polyfills';
|
|
|
|
|
2018-04-01 00:44:38 +09:00
|
|
|
import 'zone.js/dist/zone-testing';
|
2017-11-03 18:08:28 +01:00
|
|
|
|
|
|
|
import { getTestBed } from '@angular/core/testing';
|
|
|
|
import {
|
|
|
|
BrowserDynamicTestingModule,
|
|
|
|
platformBrowserDynamicTesting
|
|
|
|
} from '@angular/platform-browser-dynamic/testing';
|
|
|
|
|
|
|
|
// Spec files to include in the Stackblitz tests
|
|
|
|
import './tests.sb.ts';
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
bootstrap();
|
|
|
|
|
|
|
|
//
|
|
|
|
|
2020-07-30 13:03:14 +03:00
|
|
|
function bootstrap() {
|
|
|
|
if ((window as any).jasmineRef) {
|
2017-11-03 18:08:28 +01:00
|
|
|
location.reload();
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
window.onload(undefined);
|
2020-07-30 13:03:14 +03:00
|
|
|
(window as any).jasmineRef = jasmine.getEnv();
|
2017-11-03 18:08:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// First, initialize the Angular testing environment.
|
|
|
|
getTestBed().initTestEnvironment(
|
|
|
|
BrowserDynamicTestingModule,
|
|
|
|
platformBrowserDynamicTesting()
|
|
|
|
);
|
|
|
|
}
|