Skip to content

An Entity Details test is missing a RetrieveWorkerVersion mock

Found while working on !1311 (merged): the test calls RetrieveWorkerVersion but there is no Axios mock, so it tries to actually use localhost…

  Entity
    Details.vue
      ✓ displays the WorkerVersion that created the entity (53ms)
Error: Error: connect ECONNREFUSED 127.0.0.1:80
    at Object.dispatchError (/home/valentin/dev/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19)
    at Request.<anonymous> (/home/valentin/dev/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18)
    at Request.emit (node:events:402:35)
    at ClientRequest.<anonymous> (/home/valentin/dev/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:121:14)
    at ClientRequest.emit (node:events:390:28)
    at Socket.socketErrorListener (node:_http_client:447:9)
    at Socket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) undefined