From a4a07c79674a9add8b6dea26cf6b49479ddc6884 Mon Sep 17 00:00:00 2001 From: Amedeo Lepore Date: Fri, 24 Mar 2023 10:10:43 +0100 Subject: [PATCH] [AAE-12501] Fix Core secondary entrypoints unit tests are not executed: move test.ts one level up in order to find all the spec files into the secondary entrypoints folders and update path --- angular.json | 4 ++-- lib/core/{src => }/test.ts | 0 lib/core/tsconfig.lib.json | 2 +- lib/core/tsconfig.spec.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename lib/core/{src => }/test.ts (100%) diff --git a/angular.json b/angular.json index 8cfd609044..9b09753916 100644 --- a/angular.json +++ b/angular.json @@ -309,7 +309,7 @@ "core": { "projectType": "library", "root": "lib/core", - "sourceRoot": "lib/core/src", + "sourceRoot": "lib/core", "prefix": "adf", "architect": { "build": { @@ -333,7 +333,7 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "main": "lib/core/src/test.ts", + "main": "lib/core/test.ts", "tsConfig": "lib/core/tsconfig.spec.json", "karmaConfig": "lib/core/karma.conf.js", "sourceMap": true, diff --git a/lib/core/src/test.ts b/lib/core/test.ts similarity index 100% rename from lib/core/src/test.ts rename to lib/core/test.ts diff --git a/lib/core/tsconfig.lib.json b/lib/core/tsconfig.lib.json index d642904dfe..38b977181c 100644 --- a/lib/core/tsconfig.lib.json +++ b/lib/core/tsconfig.lib.json @@ -12,6 +12,6 @@ } }, - "exclude": ["src/test.ts", "**/*.spec.ts", "**/*.test.ts"], + "exclude": ["./test.ts", "**/*.spec.ts", "**/*.test.ts"], "include": ["**/*.ts"] } diff --git a/lib/core/tsconfig.spec.json b/lib/core/tsconfig.spec.json index 8e8cc9494b..237e652525 100644 --- a/lib/core/tsconfig.spec.json +++ b/lib/core/tsconfig.spec.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "../../dist/out-tsc" }, - "files": ["src/test.ts"], + "files": ["./test.ts"], "include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"] }