@@ -555,9 +555,9 @@ test.serial("enrichProjectGraph should throw error when projectGraph contains a
555
555
const projectGraph = await projectGraphBuilder ( provider ) ;
556
556
557
557
await t . throwsAsync ( ui5Framework . enrichProjectGraph ( projectGraph ) , {
558
- message : `Duplicate framework library definition(s) found in project application.a: sap.ui.core. ` +
559
- `Framework libraries should only be referenced via ui5.yaml configuration, not in its ` +
560
- `dependencies (e.g. package.json). Note that this error could also come from transitive dependencies .`
558
+ message : `Duplicate framework dependency definition(s) found for project application.a: sap.ui.core.\n ` +
559
+ `Framework libraries should only be referenced via ui5.yaml configuration. Neither the root project, ` +
560
+ `nor any of its dependencies should include them as direct dependencies (e.g. via package.json) .`
561
561
} ) ;
562
562
} ) ;
563
563
@@ -1074,10 +1074,10 @@ test("utils.checkForDuplicateFrameworkProjects: One duplicate", (t) => {
1074
1074
} ;
1075
1075
1076
1076
t . throws ( ( ) => utils . checkForDuplicateFrameworkProjects ( projectGraph , frameworkGraph ) , {
1077
- message : "Duplicate framework library definition(s) found in project root-project: " +
1078
- "sap.ui.core. " +
1079
- "Framework libraries should only be referenced via ui5.yaml configuration, not in its dependencies " +
1080
- "(e.g. package.json). Note that this error could also come from transitive dependencies."
1077
+ message : "Duplicate framework dependency definition(s) found for project root-project: " +
1078
+ "sap.ui.core.\n " +
1079
+ "Framework libraries should only be referenced via ui5.yaml configuration. Neither the root project, " +
1080
+ "nor any of its dependencies should include them as direct dependencies (e.g. via package.json) ."
1081
1081
} ) ;
1082
1082
} ) ;
1083
1083
@@ -1095,10 +1095,10 @@ test("utils.checkForDuplicateFrameworkProjects: Two duplicates", (t) => {
1095
1095
} ;
1096
1096
1097
1097
t . throws ( ( ) => utils . checkForDuplicateFrameworkProjects ( projectGraph , frameworkGraph ) , {
1098
- message : "Duplicate framework library definition(s) found in project root-project: " +
1099
- "sap.ui.core, sap.ui.layout. " +
1100
- "Framework libraries should only be referenced via ui5.yaml configuration, not in its dependencies " +
1101
- "(e.g. package.json). Note that this error could also come from transitive dependencies."
1098
+ message : "Duplicate framework dependency definition(s) found for project root-project: " +
1099
+ "sap.ui.core, sap.ui.layout.\n " +
1100
+ "Framework libraries should only be referenced via ui5.yaml configuration. Neither the root project, " +
1101
+ "nor any of its dependencies should include them as direct dependencies (e.g. via package.json) ."
1102
1102
} ) ;
1103
1103
} ) ;
1104
1104
0 commit comments