Skip to content

refactor: improve sorting override framework #2846

refactor: improve sorting override framework

refactor: improve sorting override framework #2846

Triggered via pull request November 26, 2025 18:41
Status Failure
Total duration 1m 24s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > "type" > overrides "type" with group with overrides: test/utils/compute-overridden-options-by-group-index.test.ts#L236
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [], "fallbackSort": { "type": "unsorted", }, + "groups": [ + { + "group": "group", + "type": "unsorted", + }, + ], "order": "asc", "type": "unsorted", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:236:9
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > "type" > overrides "type" with custom groups: test/utils/compute-overridden-options-by-group-index.test.ts#L217
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [ + { + "groupName": "group", + "type": "unsorted", + }, + ], "fallbackSort": { "type": "unsorted", + }, + "groups": [ + { + "group": "group", + "type": "natural", }, + ], "order": "asc", "type": "unsorted", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:217:9
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > "fallbackSort" > overrides "fallbackSort.order" with custom groups: test/utils/compute-overridden-options-by-group-index.test.ts#L191
AssertionError: expected { fallbackSort: { …(2) }, …(4) } to strictly equal { fallbackSort: { …(2) }, …(2) } - Expected + Received { + "customGroups": [ + { + "fallbackSort": { + "order": "desc", + "type": "alphabetical", + }, + "groupName": "group", + }, + ], "fallbackSort": { "order": "desc", "type": "alphabetical", }, + "groups": [ + "group", + ], "order": "asc", "type": "alphabetical", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:191:9
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > "fallbackSort" > takes "fallbackSort.order" if the custom group does not override it: test/utils/compute-overridden-options-by-group-index.test.ts#L164
AssertionError: expected { fallbackSort: { …(2) }, …(4) } to strictly equal { fallbackSort: { …(2) }, …(2) } - Expected + Received { + "customGroups": [ + { "fallbackSort": { + "type": "alphabetical", + }, + "groupName": "group", + }, + ], + "fallbackSort": { "order": "desc", "type": "alphabetical", }, + "groups": [ + "group", + ], "order": "asc", "type": "alphabetical", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:164:9
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > "fallbackSort" > overrides "fallbackSort.type": test/utils/compute-overridden-options-by-group-index.test.ts#L135
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [ + { "fallbackSort": { "type": "unsorted", }, + "groupName": "group", + }, + ], + "fallbackSort": { + "type": "unsorted", + }, + "groups": [ + "group", + ], "order": "asc", "type": "alphabetical", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:135:9
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > return the entered options if the group is not linked to a custom group: test/utils/compute-overridden-options-by-group-index.test.ts#L112
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [], "fallbackSort": { "type": "unsorted", }, + "groups": [ + "group", + ], "order": "asc", "type": "alphabetical", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:112:7
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > commentAbove groups > ignores array sub groups: test/utils/compute-overridden-options-by-group-index.test.ts#L95
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [ + { + "groupName": "group", + "type": "unsorted", + }, + ], "fallbackSort": { "type": "unsorted", + }, + "groups": [ + { + "commentAbove": "foo", + "group": [ + "group", + ], }, + ], "order": "asc", "type": "alphabetical", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:95:9
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > commentAbove groups > matches string groups: test/utils/compute-overridden-options-by-group-index.test.ts#L74
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [ + { + "groupName": "group", + "type": "unsorted", + }, + ], "fallbackSort": { "type": "unsorted", + }, + "groups": [ + { + "commentAbove": "foo", + "group": "group", }, + ], "order": "asc", "type": "unsorted", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:74:9
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > ignores array sub groups: test/utils/compute-overridden-options-by-group-index.test.ts#L52
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [ + { + "groupName": "group", + "type": "unsorted", + }, + ], "fallbackSort": { "type": "unsorted", }, + "groups": [ + [ + "group", + ], + ], "order": "asc", "type": "alphabetical", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:52:7
test/utils/compute-overridden-options-by-group-index.test.ts > compute-overridden-options-by-group-index > matches string groups: test/utils/compute-overridden-options-by-group-index.test.ts#L31
AssertionError: expected { …(5) } to strictly equal { …(3) } - Expected + Received { + "customGroups": [ + { + "groupName": "group", + "type": "unsorted", + }, + ], "fallbackSort": { "type": "unsorted", }, + "groups": [ + "group", + ], "order": "asc", "type": "unsorted", } ❯ test/utils/compute-overridden-options-by-group-index.test.ts:31:7