fix(#2553): remove config with no properties + support metadata check for config without properties #13396
Annotations
4 errors and 1 warning
Test:
packages/@o3r/components/builders/metadata-check/index.it.spec.ts#L353
expect(received).toContain(expected) // indexOf
Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but is not documented in the migration document"
Received string: "Command failed: yarn ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document
Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document
Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document
Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document
Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document
Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document
Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document
Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document
Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document
Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document
Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document
Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document
Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document
Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document
Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document
Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document
Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document
"
at builders/metadata-check/index.it.spec.ts:353:27
at Array.forEach (<anonymous>)
at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:351:46)
|
Test:
packages/@o3r/components/builders/metadata-check/index.it.spec.ts#L389
expect(received).toContain(expected) // indexOf
Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but the new property is not present in the new metadata"
Received string: "Command failed: yarn ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata
Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata
Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata
Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata
Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata
Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata
Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata
Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata
Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata
Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata
Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata
Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata
Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata
Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata
Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata
Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata
Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata
"
at builders/metadata-check/index.it.spec.ts:389:27
at Array.forEach (<anonymous>)
at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:386:46)
|
Test:
packages/@o3r/components/builders/metadata-check/index.it.spec.ts#L419
expect(received).toContain(expected) // indexOf
Expected substring: "Property @o3r/lib10#MyConfig10 is not present in the new metadata and breaking changes are not allowed"
Received string: "Command failed: yarn ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed
"
at builders/metadata-check/index.it.spec.ts:419:27
at Array.forEach (<anonymous>)
at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:415:46)
|
Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading