From 82cd7d6db22ef4e080a4059527502ed135cb032f Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Mon, 23 Oct 2023 15:06:01 +0200 Subject: [PATCH] docs: remove test.ts file in aio (#52327) Same as 7ba5dc87ed, but for aio This file is not necessary since CLI v15+ PR Close #52327 --- aio/angular.json | 1 - aio/src/test.ts | 14 -------------- aio/tsconfig.spec.json | 3 --- 3 files changed, 18 deletions(-) delete mode 100644 aio/src/test.ts diff --git a/aio/angular.json b/aio/angular.json index 146e329b8a2..248327f57c8 100644 --- a/aio/angular.json +++ b/aio/angular.json @@ -215,7 +215,6 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "src/test.ts", "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", "webWorkerTsConfig": "tsconfig.worker.json", diff --git a/aio/src/test.ts b/aio/src/test.ts deleted file mode 100644 index 51bb0206a2e..00000000000 --- a/aio/src/test.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'zone.js/testing'; -import { getTestBed } from '@angular/core/testing'; -import { - BrowserDynamicTestingModule, - platformBrowserDynamicTesting -} from '@angular/platform-browser-dynamic/testing'; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting(), -); diff --git a/aio/tsconfig.spec.json b/aio/tsconfig.spec.json index 5bd23fe388c..f1232f10024 100644 --- a/aio/tsconfig.spec.json +++ b/aio/tsconfig.spec.json @@ -7,9 +7,6 @@ "node" ] }, - "files": [ - "src/test.ts", - ], "include": [ "src/testing/**/*.ts", "src/**/*.spec.ts",