Skip to content

wip: Sequence details v2 #32

wip: Sequence details v2

wip: Sequence details v2 #32

Triggered via pull request May 1, 2024 17:50
Status Failure
Total duration 2m 15s
Artifacts

website-tests.yml

on: pull_request
Check format and types
1m 30s
Check format and types
Unit Tests
49s
Unit Tests
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 3 warnings
src/components/SequenceDetailsPage/getTableData.spec.ts > getTableData > should return details field values: website/src/components/SequenceDetailsPage/getTableData.spec.ts#L123
AssertionError: expected [ …(9) ] to deep equally contain { label: 'Metadata field1', …(3) } - Expected: Object { "header": "testHeader1", "label": "Metadata field1", "name": "metadataField1", "value": "value 1", } + Received: Array [ Object { "customDisplay": undefined, "header": "testHeader1", "label": "Metadata field1", "name": "metadataField1", "type": Object { "name": "metadata", "type": "string", }, "value": "value 1", }, Object { "customDisplay": undefined, "header": "", "label": "Metadata field2", "name": "metadataField2", "type": Object { "name": "metadata", "type": "string", }, "value": "value 2", }, Object { "customDisplay": undefined, "header": "", "label": "Timestamp field", "name": "timestampField", "type": Object { "name": "metadata", "type": "timestamp", }, "value": "N/A", }, Object { "customDisplay": Object { "type": "badge", "value": Array [], }, "header": "Mutations, insertions, deletions", "label": "Nucleotide substitutions", "name": "nucleotideSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide deletions", "name": "nucleotideDeletions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide insertions", "name": "nucleotideInsertions", "type": Object { "name": "mutation", }, "value": "", }, Object { "customDisplay": Object { "type": "badge", "value": Array [], }, "header": "Mutations, insertions, deletions", "label": "Amino acid substitutions", "name": "aminoAcidSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid deletions", "name": "aminoAcidDeletions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid insertions", "name": "aminoAcidInsertions", "type": Object { "name": "mutation", }, "value": "", }, ] ❯ src/components/SequenceDetailsPage/getTableData.spec.ts:123:22
src/components/SequenceDetailsPage/getTableData.spec.ts > getTableData > should return data of mutations: website/src/components/SequenceDetailsPage/getTableData.spec.ts#L144
AssertionError: expected [ …(9) ] to deep equally contain { …(5) } - Expected: Object { "customDisplay": Object { "type": "badge", "value": Array [ Object { "count": 0, "mutation": "T10A", "mutationFrom": "T", "mutationTo": "A", "position": 10, "proportion": 0, "sequenceName": null, }, Object { "count": 0, "mutation": "C30G", "mutationFrom": "C", "mutationTo": "G", "position": 30, "proportion": 0, "sequenceName": null, }, ], }, "header": "Mutations, insertions, deletions", "label": "Nucleotide substitutions", "name": "nucleotideSubstitutions", "value": "", } + Received: Array [ Object { "customDisplay": undefined, "header": "testHeader1", "label": "Metadata field1", "name": "metadataField1", "type": Object { "name": "metadata", "type": "string", }, "value": "N/A", }, Object { "customDisplay": undefined, "header": "", "label": "Metadata field2", "name": "metadataField2", "type": Object { "name": "metadata", "type": "string", }, "value": "N/A", }, Object { "customDisplay": undefined, "header": "", "label": "Timestamp field", "name": "timestampField", "type": Object { "name": "metadata", "type": "timestamp", }, "value": "N/A", }, Object { "customDisplay": Object { "type": "badge", "value": Array [ Object { "count": 0, "mutation": "T10A", "mutationFrom": "T", "mutationTo": "A", "position": 10, "proportion": 0, "sequenceName": null, }, Object { "count": 0, "mutation": "C30G", "mutationFrom": "C", "mutationTo": "G", "position": 30, "proportion": 0, "sequenceName": null, }, ], }, "header": "Mutations, insertions, deletions", "label": "Nucleotide substitutions", "name": "nucleotideSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide deletions", "name": "nucleotideDeletions", "type": Object { "name": "mutation", }, "value": "20, 21, 39-45, 400", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide insertions", "name": "nucleotideInsertions", "type": Object { "name": "mutation", }, "value": "", }, Object { "customDisplay": Object { "type": "badge", "value": Array [ Object { "count": 0, "mutation": "gene1:N10Y", "mutationFrom": "N", "mutationTo": "Y", "position": 10, "proportion": 0, "sequenceName": "gene1", }, Object { "count": 0, "mutation": "gene1:T30N", "mutationFrom": "T", "mutationTo": "N", "position": 30, "proportion": 0, "sequenceName": "gene1", }, ], }, "header": "Mutations, insertions, deletions", "label": "Amino acid substitutions", "name": "aminoAcidSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid deletions", "name": "aminoAcidDeletions", "type": Object { "name": "mutation", }, "value": "gene1:20-23, gene1:40", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid insertions", "name": "aminoAcidInsertions", "type": Object { "name": "mutation", }, "value": "", }, ] ❯ src/components/SequenceDetailsPage/getTableData.spec.ts:144:22
src/components/SequenceDetailsPage/getTableData.spec.ts > getTableData > should return data of insertions: website/src/components/SequenceDetailsPage/getTableData.spec.ts#L223
AssertionError: expected [ …(9) ] to deep equally contain { Object (label, name, ...) } - Expected: Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide insertions", "name": "nucleotideInsertions", "value": "nucleotideInsertion1, nucleotideInsertion2", } + Received: Array [ Object { "customDisplay": undefined, "header": "testHeader1", "label": "Metadata field1", "name": "metadataField1", "type": Object { "name": "metadata", "type": "string", }, "value": "N/A", }, Object { "customDisplay": undefined, "header": "", "label": "Metadata field2", "name": "metadataField2", "type": Object { "name": "metadata", "type": "string", }, "value": "N/A", }, Object { "customDisplay": undefined, "header": "", "label": "Timestamp field", "name": "timestampField", "type": Object { "name": "metadata", "type": "timestamp", }, "value": "N/A", }, Object { "customDisplay": Object { "type": "badge", "value": Array [], }, "header": "Mutations, insertions, deletions", "label": "Nucleotide substitutions", "name": "nucleotideSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide deletions", "name": "nucleotideDeletions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide insertions", "name": "nucleotideInsertions", "type": Object { "name": "mutation", }, "value": "nucleotideInsertion1, nucleotideInsertion2", }, Object { "customDisplay": Object { "type": "badge", "value": Array [], }, "header": "Mutations, insertions, deletions", "label": "Amino acid substitutions", "name": "aminoAcidSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid deletions", "name": "aminoAcidDeletions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid insertions", "name": "aminoAcidInsertions", "type": Object { "name": "mutation", }, "value": "aminoAcidInsertion1, aminoAcidInsertion2", }, ] ❯ src/components/SequenceDetailsPage/getTableData.spec.ts:223:22
src/components/SequenceDetailsPage/getTableData.spec.ts > getTableData > should map timestamps to human readable dates: website/src/components/SequenceDetailsPage/getTableData.spec.ts#L243
AssertionError: expected [ …(9) ] to deep equally contain { label: 'Timestamp field', …(3) } - Expected: Object { "header": "", "label": "Timestamp field", "name": "timestampField", "value": "2024-01-25 14:59:21 UTC", } + Received: Array [ Object { "customDisplay": undefined, "header": "testHeader1", "label": "Metadata field1", "name": "metadataField1", "type": Object { "name": "metadata", "type": "string", }, "value": "N/A", }, Object { "customDisplay": undefined, "header": "", "label": "Metadata field2", "name": "metadataField2", "type": Object { "name": "metadata", "type": "string", }, "value": "N/A", }, Object { "customDisplay": undefined, "header": "", "label": "Timestamp field", "name": "timestampField", "type": Object { "name": "metadata", "type": "timestamp", }, "value": "2024-01-25 14:59:21 UTC", }, Object { "customDisplay": Object { "type": "badge", "value": Array [], }, "header": "Mutations, insertions, deletions", "label": "Nucleotide substitutions", "name": "nucleotideSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide deletions", "name": "nucleotideDeletions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Nucleotide insertions", "name": "nucleotideInsertions", "type": Object { "name": "mutation", }, "value": "", }, Object { "customDisplay": Object { "type": "badge", "value": Array [], }, "header": "Mutations, insertions, deletions", "label": "Amino acid substitutions", "name": "aminoAcidSubstitutions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid deletions", "name": "aminoAcidDeletions", "type": Object { "name": "mutation", }, "value": "", }, Object { "header": "Mutations, insertions, deletions", "label": "Amino acid insertions", "name": "aminoAcidInsertions", "type": Object { "name": "mutation", }, "value": "", }, ] ❯ src/components/SequenceDetailsPage/getTableData.spec.ts:243:22
Unit Tests
Process completed with exit code 1.
Check format and types: website/src/components/SequenceDetailsPage/DataTable.astro#L6
'OrcidIcon' is defined but never used
Check format and types: website/src/components/SequenceDetailsPage/DataTable.astro#L7
`./getDataTableData` import should occur before import of `./getTableData`
Check format and types: website/src/components/SequenceDetailsPage/getDataTableData.spec.ts#L4
`./getDataTableData.ts` import should occur before import of `./getTableData.ts`
Check format and types: website/src/components/SequenceDetailsPage/getDataTableData.ts#L22
'entry' is never reassigned. Use 'const' instead
Check format and types: website/src/components/SequenceDetailsPage/getDataTableData.ts#L34
'header' is never reassigned. Use 'const' instead
Check format and types: website/src/components/SequenceDetailsPage/getDataTableData.ts#L34
'rows' is never reassigned. Use 'const' instead
Check format and types: website/src/components/SequenceDetailsPage/getTableData.spec.ts#L9
`./getDataTableData.ts` import should occur before import of `./getTableData.ts`
Check format and types: website/src/components/SequenceDetailsPage/getTableData.spec.ts#L9
'getDataTableData' is defined but never used
Check format and types: website/src/components/SequenceDetailsPage/getTableData.spec.ts#L437
'defaultNoHeaderList' is assigned a value but never used
Unit Tests
This job failure may be caused by using an out of date self-hosted runner. You are currently using runner version 2.315.0. Please update to the latest version 2.316.0
Check format and types
This job failure may be caused by using an out of date self-hosted runner. You are currently using runner version 2.315.0. Please update to the latest version 2.316.0