refactor(28015): refactor mapping editor #2546
frontend-cli.yml
on: push
build_production
44s
lint
51s
unit_tests
1m 26s
Annotations
15 errors
build_production
Type '{ topic: string; validation: MappingValidation; }' is missing the following properties from type 'DataModelDestinationProps': adapterType, adapterId
|
build_production
Type '{ topic: string; validation: MappingValidation; }' is missing the following properties from type 'DataModelDestinationProps': adapterType, adapterId
|
build_production
Type '{ value: string; onChange: Agent<SinonStub<any[], any>>; }' is missing the following properties from type 'SourceSelectorProps': adapterType, adapterId
|
build_production
Property 'adapterType' is missing in type '{ adapterId: string; value: string; onChange: Agent<SinonStub<any[], any>>; }' but required in type 'SourceSelectorProps'.
|
build_production
Type '{ onClose: Agent<SinonStub<any[], any>>; onSubmit: Agent<SinonStub<any[], any>>; onChange: Agent<SinonStub<any[], any>>; item: OutwardMapping; }' is missing the following properties from type 'SubscriptionContainerProps': adapterType, adapterId
|
build_production
Property 'adapterType' is missing in type '{ adapterId: string; onClose: Omit<SinonStub<any[], any>, "withArgs"> & SinonSpyAgent<SinonStub<any[], any>> & SinonStub<any[], any>; onSubmit: Omit<...> & ... 1 more ... & SinonStub<...>; onChange: Omit<...> & ... 1 more ... & SinonStub<...>; item: OutwardMapping; }' but required in type 'MappingDrawerProps'.
|
build_production
Property 'adapterType' is missing in type '{ adapterId: string; onClose: Agent<SinonStub<any[], any>>; onSubmit: Agent<SinonStub<any[], any>>; onChange: Agent<SinonStub<any[], any>>; item: OutwardMapping; }' but required in type 'MappingDrawerProps'.
|
build_production
Type '{ topic: string; showTransformation: false; onChange: Agent<SinonStub<any[], any>>; mapping: FieldMapping[]; }' is missing the following properties from type 'MappingEditorProps': adapterType, adapterId
|
build_production
Type '{ topic: string; showTransformation: false; onChange: Agent<SinonStub<any[], any>>; mapping: FieldMapping[]; }' is missing the following properties from type 'MappingEditorProps': adapterType, adapterId
|
build_production
Process completed with exit code 1.
|
lint
Process completed with exit code 1.
|
src/modules/Mappings/hooks/useTagManager.spec.tsx > useTagManager > should return errors for wrong adapter:
hivemq-edge/src/frontend/src/modules/Mappings/hooks/useTagManager.spec.tsx#L82
AssertionError: expected { context: { …(3) }, …(9) } to strictly equal ObjectContaining{…}
- Expected
+ Received
- ObjectContaining {
+ Object {
"context": Object {
- "formData": undefined,
+ "formData": Object {
+ "items": Array [],
+ },
"schema": undefined,
- "uiSchema": Object {},
+ "uiSchema": Object {
+ "items": Object {
+ "items": Object {
+ "ui:collapsable": Object {
+ "titleKey": "name",
},
- "data": undefined,
- "error": "The protocol adapter for this device cannot be found",
+ "ui:order": Array [
+ "name",
+ "description",
+ "*",
+ ],
+ },
+ },
+ "ui:submitButtonOptions": Object {
+ "norender": true,
+ },
+ },
+ },
+ "data": Object {
+ "items": Array [],
+ },
+ "error": "Internal Server Error",
"isError": true,
"isLoading": false,
"isPending": false,
+ "onCreate": [Function onCreate],
+ "onDelete": [Function onDelete],
+ "onUpdate": [Function onUpdate],
+ "onupdateCollection": [Function onupdateCollection],
}
❯ src/modules/Mappings/hooks/useTagManager.spec.tsx:82:28
|
src/modules/Mappings/hooks/useTagManager.spec.tsx > useTagManager > should return errors for missing tags:
hivemq-edge/src/frontend/src/modules/Mappings/hooks/useTagManager.spec.tsx#L105
AssertionError: expected { context: { …(3) }, …(9) } to strictly equal ObjectContaining{…}
- Expected
+ Received
- ObjectContaining {
+ Object {
"context": Object {
- "formData": undefined,
+ "formData": Object {
+ "items": Array [],
+ },
"schema": undefined,
- "uiSchema": Object {},
+ "uiSchema": Object {
+ "items": Object {
+ "items": Object {
+ "ui:collapsable": Object {
+ "titleKey": "name",
},
- "data": undefined,
- "error": "The form cannot be created, due to internal errors",
+ "ui:order": Array [
+ "name",
+ "description",
+ "*",
+ ],
+ },
+ },
+ "ui:submitButtonOptions": Object {
+ "norender": true,
+ },
+ },
+ },
+ "data": Object {
+ "items": Array [],
+ },
+ "error": "Internal Server Error",
"isError": true,
"isLoading": false,
"isPending": false,
+ "onCreate": [Function onCreate],
+ "onDelete": [Function onDelete],
+ "onUpdate": [Function onUpdate],
+ "onupdateCollection": [Function onupdateCollection],
}
❯ src/modules/Mappings/hooks/useTagManager.spec.tsx:105:28
|
src/modules/Mappings/hooks/useTagManager.spec.tsx > useTagManager > should return the manager:
hivemq-edge/src/frontend/src/modules/Mappings/hooks/useTagManager.spec.tsx#L130
AssertionError: expected { context: { …(3) }, …(9) } to strictly equal ObjectContaining{…}
- Expected
+ Received
- ObjectContaining {
+ Object {
"context": Object {
"formData": Object {
"items": Array [],
},
- "schema": ObjectContaining {
- "definitions": ObjectContaining {
- "DeviceDataPoint": ObjectContaining {
- "properties": ObjectContaining {
- "node": ObjectContaining {
- "title": "Source Node ID",
+ "schema": undefined,
+ "uiSchema": Object {
+ "items": Object {
+ "items": Object {
+ "ui:collapsable": Object {
+ "titleKey": "name",
},
+ "ui:order": Array [
+ "name",
+ "description",
+ "*",
+ ],
},
},
- "DomainTag": ObjectContaining {},
+ "ui:submitButtonOptions": Object {
+ "norender": true,
},
},
- "uiSchema": Object {},
},
"data": Object {
"items": Array [],
},
- "error": null,
+ "error": undefined,
"isError": false,
"isLoading": false,
"isPending": false,
+ "onCreate": [Function onCreate],
+ "onDelete": [Function onDelete],
+ "onUpdate": [Function onUpdate],
+ "onupdateCollection": [Function onupdateCollection],
}
❯ src/modules/Mappings/hooks/useTagManager.spec.tsx:130:28
|
unit_tests
Process completed with exit code 1.
|