Skip to content

refactor: create mock data utilities #1235

refactor: create mock data utilities

refactor: create mock data utilities #1235

Triggered via pull request January 12, 2025 08:05
Status Failure
Total duration 2m 44s
Artifacts 2

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 2 warnings
src/services/rundown-service/__tests__/delayUtils.test.ts > apply() > applies a positive delay to the rundown: apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L20
AssertionError: expected [ { type: 'event', …(7) }, …(4) ] to match object [ …(5) ] (9 matching properties omitted from actual) - Expected + Received Array [ Object { "duration": 10, "id": "1", - "revision": 2, + "revision": NaN, "timeEnd": 20, "timeStart": 10, }, Object { "duration": 10, "id": "2", "linkStart": "1", - "revision": 2, + "revision": NaN, "timeEnd": 30, "timeStart": 20, }, Object { "id": "3", }, Object { "duration": 10, "id": "4", "linkStart": null, - "revision": 2, + "revision": NaN, "timeEnd": 40, "timeStart": 30, }, Object { "duration": 10, "id": "5", "linkStart": "4", - "revision": 2, + "revision": NaN, "timeEnd": 50, "timeStart": 40, }, ] ❯ src/services/rundown-service/__tests__/delayUtils.test.ts:20:28
src/services/rundown-service/__tests__/delayUtils.test.ts > apply() > applies negative delays: apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L40
AssertionError: expected [ { type: 'event', …(7) }, …(4) ] to match object [ …(5) ] (9 matching properties omitted from actual) - Expected + Received Array [ Object { "duration": 10, "id": "1", - "revision": 2, + "revision": NaN, "timeEnd": 10, "timeStart": 0, }, Object { "duration": 10, "id": "2", "linkStart": null, - "revision": 2, + "revision": NaN, "timeEnd": 10, "timeStart": 0, }, Object { "id": "3", }, Object { "duration": 10, "id": "4", "linkStart": null, - "revision": 2, + "revision": NaN, "timeEnd": 20, "timeStart": 10, }, Object { "duration": 10, "id": "5", "linkStart": "4", - "revision": 2, + "revision": NaN, "timeEnd": 30, "timeStart": 20, }, ] ❯ src/services/rundown-service/__tests__/delayUtils.test.ts:40:28
src/services/rundown-service/__tests__/delayUtils.test.ts > apply() > should account for minimum duration and start when applying negative delays: apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L70
AssertionError: expected [ { type: 'event', …(7) }, …(1) ] to match object [ …(2) ] (3 matching properties omitted from actual) - Expected + Received Array [ Object { "duration": 100, "id": "1", - "revision": 2, + "revision": NaN, "timeEnd": 100, "timeStart": 0, "type": "event", }, Object { "duration": 50, "id": "2", "linkStart": null, - "revision": 2, + "revision": NaN, "timeEnd": 100, "timeStart": 50, "type": "event", }, ] ❯ src/services/rundown-service/__tests__/delayUtils.test.ts:70:28
src/services/rundown-service/__tests__/delayUtils.test.ts > apply() > gaps reduce positive delay: apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L151
AssertionError: expected [ { type: 'event', …(7) }, …(4) ] to match object [ …(5) ] (13 matching properties omitted from actual) - Expected + Received Array [ Object { "duration": 100, "id": "1", - "revision": 2, + "revision": NaN, "timeEnd": 200, "timeStart": 100, }, Object { "duration": 50, "id": "2", - "revision": 2, + "revision": NaN, "timeEnd": 250, "timeStart": 200, }, Object { "duration": 50, "gap": 0, "id": "3", - "revision": 2, + "revision": NaN, "timeEnd": 300, "timeStart": 250, }, Object { "duration": 50, "id": "4", - "revision": 1, "timeEnd": 350, "timeStart": 300, }, Object { "duration": 50, "id": "5", "linkStart": "4", - "revision": 1, "timeEnd": 400, "timeStart": 350, }, ] ❯ src/services/rundown-service/__tests__/delayUtils.test.ts:151:28
src/services/rundown-service/__tests__/delayUtils.test.ts > apply() > gaps reduce positive delay (2): apps/server/src/services/rundown-service/__tests__/delayUtils.test.ts#L187
AssertionError: expected [ { type: 'event', …(9) }, …(1) ] to match object [ Array(2) ] (13 matching properties omitted from actual) - Expected + Received Array [ Object { "id": "1", - "revision": 2, + "revision": NaN, "timeStart": 54000000, }, Object { "id": "2", - "revision": 2, + "revision": NaN, "timeStart": 57600000, }, ] ❯ src/services/rundown-service/__tests__/delayUtils.test.ts:187:28
unit-test
Process completed with exit code 1.
unit-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
e2e-test
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
automated-screenshots
430 KB
playwright-report
3.05 MB