import 'core-js';
import 'zone.js/dist/zone';
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy.js';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';

import { getTestBed } from '@angular/core/testing';
import {
    BrowserDynamicTestingModule,
    platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';

import 'rxjs';
import { config } from 'rxjs';

config.useDeprecatedSynchronousErrorHandling = true;

getTestBed().initTestEnvironment(
  BrowserDynamicTestingModule,
  platformBrowserDynamicTesting()
);

const testContext = require.context(
  './',
  false,
  /(common|datasource\-get|initial\-load|scroll\-basic|min\-max\-indexes)\.spec\.ts/
);

function requireAll(requireContext) {
  return requireContext.keys().map(requireContext);
}

requireAll(testContext);

import 'core-js';
import 'zone.js/dist/zone';
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy.js';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';

import { getTestBed } from '@angular/core/testing';
import {
    BrowserDynamicTestingModule,
    platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';

import 'rxjs';
import { config } from 'rxjs';

config.useDeprecatedSynchronousErrorHandling = true;

getTestBed().initTestEnvironment(
  BrowserDynamicTestingModule,
  platformBrowserDynamicTesting()
);

const testContext = require.context(
  './',
  false,
  /(common|datasource\-get|initial\-load|scroll\-basic|min\-max\-indexes|eof)\.spec\.ts/
);

function requireAll(requireContext) {
  return requireContext.keys().map(requireContext);
}

requireAll(testContext);

include 8 eof/bof tests