Skip to content

Commit bff5076

Browse files
committed
testing: hide 2x console.warn
> Project "THEPROJECT" is missing a required property "root". > This will become an error in the next major version.
1 parent 4d24831 commit bff5076

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ng-add.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ describe('ng-add', () => {
139139
'angular.json',
140140
JSON.stringify({
141141
version: 1,
142-
projects: { [PROJECT_NAME]: { projectType: 'invalid' } }
142+
projects: {
143+
[PROJECT_NAME]: { projectType: 'invalid', root: PROJECT_NAME }
144+
}
143145
})
144146
);
145147

@@ -156,7 +158,9 @@ describe('ng-add', () => {
156158
'angular.json',
157159
JSON.stringify({
158160
version: 1,
159-
projects: { [PROJECT_NAME]: { projectType: 'application' } }
161+
projects: {
162+
[PROJECT_NAME]: { projectType: 'application', root: PROJECT_NAME }
163+
}
160164
})
161165
);
162166

0 commit comments

Comments
 (0)