fix conditions and update tests #2877
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
|
src/services/OpenStreetCam/OpenStreetCam.test.js > OpenStreetCam Service Functions > should throw an error if OpenStreetCam is not enabled:
src/services/OpenStreetCam/OpenStreetCam.test.js#L5
ReferenceError: jest is not defined
❯ src/services/OpenStreetCam/OpenStreetCam.test.js:5:5
|
src/services/OpenStreetCam/OpenStreetCam.test.js > OpenStreetCam Service Functions > should fetch OpenStreetCam images correctly:
src/services/OpenStreetCam/OpenStreetCam.test.js#L5
ReferenceError: jest is not defined
❯ src/services/OpenStreetCam/OpenStreetCam.test.js:5:5
|
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
|
src/services/OpenStreetCam/OpenStreetCam.test.js > OpenStreetCam Service Functions > should throw an error if OpenStreetCam is not enabled:
src/services/OpenStreetCam/OpenStreetCam.test.js#L5
ReferenceError: jest is not defined
❯ src/services/OpenStreetCam/OpenStreetCam.test.js:5:5
|
src/services/OpenStreetCam/OpenStreetCam.test.js > OpenStreetCam Service Functions > should fetch OpenStreetCam images correctly:
src/services/OpenStreetCam/OpenStreetCam.test.js#L5
ReferenceError: jest is not defined
❯ src/services/OpenStreetCam/OpenStreetCam.test.js:5:5
|
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
|