fix conditions and update tests #2877
Annotations
7 errors
|
Run the tests:
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
|
Run the tests:
src/services/Mapillary/Mapillary.test.js#L16
ReferenceError: jest is not defined
❯ src/services/Mapillary/Mapillary.test.js:16:5
|
Run the tests:
src/services/Mapillary/Mapillary.test.js#L20
TypeError: console.error.mockRestore is not a function
❯ src/services/Mapillary/Mapillary.test.js:20:19
|
Run the tests:
src/services/OpenStreetCam/OpenStreetCam.test.js#L5
ReferenceError: jest is not defined
❯ src/services/OpenStreetCam/OpenStreetCam.test.js:5:5
|
Run the tests:
src/services/OpenStreetCam/OpenStreetCam.test.js#L5
ReferenceError: jest is not defined
❯ src/services/OpenStreetCam/OpenStreetCam.test.js:5:5
|
Run the tests
The operation was canceled.
|
Loading