Skip to content

fix conditions and update tests #2877

fix conditions and update tests

fix conditions and update tests #2877

Triggered via push December 10, 2024 20:05
Status Failure
Total duration 2m 51s
Artifacts

node.js.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 1 warning
src/services/Mapillary/Mapillary.test.js > Mapillary Service Functions: src/services/Mapillary/Mapillary.test.js#L16
ReferenceError: jest is not defined ❯ src/services/Mapillary/Mapillary.test.js:16:5
src/services/Mapillary/Mapillary.test.js > Mapillary Service Functions: src/services/Mapillary/Mapillary.test.js#L20
TypeError: console.error.mockRestore is not a function ❯ src/services/Mapillary/Mapillary.test.js:20:19
build (20)
Process completed with exit code 1.
build (18)
The job was canceled because "_20" failed.
Unhandled error: src/services/Server/WebSocketClient.js#L113
ReferenceError: WebSocket is not defined ❯ WebSocketClient.open src/services/Server/WebSocketClient.js:113:26 ❯ Timeout._onTimeout src/services/Server/WebSocketClient.js:97:55 ❯ listOnTimeout node:internal/timers:569:17 ❯ processTimers node:internal/timers:512:7 This error originated in "src/interactions/File/AsLineReadableFile.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes: - cancel timeouts using clearTimeout and clearInterval - wait for promises to resolve using the await keyword
src/services/Mapillary/Mapillary.test.js > Mapillary Service Functions: src/services/Mapillary/Mapillary.test.js#L16
ReferenceError: jest is not defined ❯ src/services/Mapillary/Mapillary.test.js:16:5
src/services/Mapillary/Mapillary.test.js > Mapillary Service Functions: src/services/Mapillary/Mapillary.test.js#L20
TypeError: console.error.mockRestore is not a function ❯ src/services/Mapillary/Mapillary.test.js:20:19
build (18)
The operation was canceled.
build (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636