From bff50764b3cea899aae0d39c4b5a7b2e33eca875 Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Tue, 26 Jul 2022 13:08:16 +0200 Subject: [PATCH] testing: hide 2x console.warn > Project "THEPROJECT" is missing a required property "root". > This will become an error in the next major version. --- src/ng-add.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ng-add.spec.ts b/src/ng-add.spec.ts index 673b3d1..dca5574 100644 --- a/src/ng-add.spec.ts +++ b/src/ng-add.spec.ts @@ -139,7 +139,9 @@ describe('ng-add', () => { 'angular.json', JSON.stringify({ version: 1, - projects: { [PROJECT_NAME]: { projectType: 'invalid' } } + projects: { + [PROJECT_NAME]: { projectType: 'invalid', root: PROJECT_NAME } + } }) ); @@ -156,7 +158,9 @@ describe('ng-add', () => { 'angular.json', JSON.stringify({ version: 1, - projects: { [PROJECT_NAME]: { projectType: 'application' } } + projects: { + [PROJECT_NAME]: { projectType: 'application', root: PROJECT_NAME } + } }) );