blob: e2bdbd0566496ddef06bebd43b2000ac7d2e415d [file] [log] [blame]
Error.stackTraceLimit = Infinity;
require('core-js/client/shim');
require('@angular/common');
require('rxjs');
require('zone.js/dist/zone');
require('zone.js/dist/long-stack-trace-zone');
require('zone.js/dist/proxy');
require('zone.js/dist/sync-test');
require('zone.js/dist/jasmine-patch');
require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test');
const context = require.context('./app', true, /\.(js|ts|tsx)$/);
// context.keys().forEach(context);
context.keys().forEach(function(path) {
try {
context(path);
} catch(err) {
console.error('[ERROR] WITH SPEC FILE: ', path);
console.error(err);
}
});
const testing = require('@angular/core/testing');
const testingBrowser = require('@angular/platform-browser-dynamic/testing');
testing.TestBed.initTestEnvironment(testingBrowser.BrowserDynamicTestingModule, testingBrowser.platformBrowserDynamicTesting());