diff --git a/src/test.ts b/src/test.ts deleted file mode 100755 index 2273217..0000000 --- a/src/test.ts +++ /dev/null @@ -1,23 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import { getTestBed } from "@angular/core/testing"; -import { - BrowserDynamicTestingModule, - platformBrowserDynamicTesting, -} from "@angular/platform-browser-dynamic/testing"; -import "zone.js/testing"; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting(), - { - teardown: { destroyAfterEach: false }, - }, -); -// Then we find all the tests. -const context = require.context("./", true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json index fb7c566..0a47db0 100755 --- a/src/tsconfig.app.json +++ b/src/tsconfig.app.json @@ -4,5 +4,5 @@ "outDir": "../out-tsc/app", "types": [] }, - "exclude": ["test.ts", "**/*.spec.ts"] + "exclude": [ "**/*.spec.ts"] } diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json index f1fb03a..8dec5c7 100755 --- a/src/tsconfig.spec.json +++ b/src/tsconfig.spec.json @@ -4,6 +4,6 @@ "outDir": "../out-tsc/spec", "types": ["jest", "node"] }, - "files": ["test.ts", "polyfills.ts"], + "files": [ "polyfills.ts"], "include": ["**/*.spec.ts", "**/*.d.ts"] }