Skip to content

sort by date and mutation, add unit test #1838

sort by date and mutation, add unit test

sort by date and mutation, add unit test #1838

Triggered via push January 21, 2025 12:08
Status Failure
Total duration 3m 49s
Artifacts 1

tests.yml

on: push
Run checks and build
1m 31s
Run checks and build
Run unit tests
25s
Run unit tests
Run storybook tests
3m 40s
Run storybook tests
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 6 warnings
src/query/queryWastewaterMutationsOverTime.spec.ts > queryWastewaterMutationsOverTime > should fetch data: components/src/lapisApi/lapisApi.ts#L171
UnknownLapisError: : {"error":["Request body did not match: expected { country: 'Germany', …(1) } to deeply equal { country: 'Germany', …(1) } - expected: {\"country\":\"Germany\",\"fields\":[\"date\",\"location\",\"reference\",\"nucleotideMutationFrequency\",\"aminoAcidMutationFrequency\"]} - actual {\"country\":\"Germany\",\"fields\":[\"date\",\"location\",\"nucleotideMutationFrequency\",\"aminoAcidMutationFrequency\"]}"]} ❯ handleErrors src/lapisApi/lapisApi.ts:171:19 ❯ Module.fetchDetails src/lapisApi/lapisApi.ts:65:5 ❯ FetchDetailsOperator.evaluate src/operator/FetchDetailsOperator.ts:16:13 ❯ Module.queryWastewaterMutationsOverTime src/query/queryWastewaterMutationsOverTime.ts:26:19 ❯ src/query/queryWastewaterMutationsOverTime.spec.ts:45:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 400, requestedData: 'aggregated data' }
src/query/queryWastewaterMutationsOverTime.spec.ts > queryWastewaterMutationsOverTime > should error when the mutation frequency object is invalid: components/src/query/queryWastewaterMutationsOverTime.spec.ts#L90
AssertionError: expected [Function] to throw error matching /^Failed to parse mutation frequency/ but got ': {"error":["Request body did not mat…' - Expected: /^Failed to parse mutation frequency/ + Received: ": {\"error\":[\"Request body did not match: expected { country: 'Germany', …(1) } to deeply equal { country: 'Germany', …(1) } - expected: {\\\"country\\\":\\\"Germany\\\",\\\"fields\\\":[\\\"date\\\",\\\"location\\\",\\\"reference\\\",\\\"nucleotideMutationFrequency\\\",\\\"aminoAcidMutationFrequency\\\"]} - actual {\\\"country\\\":\\\"Germany\\\",\\\"fields\\\":[\\\"date\\\",\\\"location\\\",\\\"nucleotideMutationFrequency\\\",\\\"aminoAcidMutationFrequency\\\"]}\"]}" ❯ src/query/queryWastewaterMutationsOverTime.spec.ts:90:9
Run unit tests
Process completed with exit code 1.
Run checks and build: components/src/query/queryMutationsOverTime.ts#L19
'Map2d' is defined but never used
Run checks and build: components/src/query/queryMutationsOverTime.ts#L22
'DeletionClass' is defined but never used
Run checks and build: components/src/query/queryMutationsOverTime.ts#L24
'SubstitutionClass' is defined but never used
Run checks and build
Process completed with exit code 1.
Run storybook tests
Process completed with exit code 1.
Run unit tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run checks and build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run checks and build: components/src/query/queryMutationsOverTime.ts#L19
'Map2d' is defined but never used. Allowed unused vars must match /^_/u
Run checks and build: components/src/query/queryMutationsOverTime.ts#L22
'DeletionClass' is defined but never used. Allowed unused vars must match /^_/u
Run checks and build: components/src/query/queryMutationsOverTime.ts#L24
'SubstitutionClass' is defined but never used. Allowed unused vars must match /^_/u
Run storybook tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
playwright-report
1.07 MB